This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from textbook/feat-single-artifact-deploy
Allow running the app as a single artifact
- Loading branch information
Showing
44 changed files
with
614 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package | ||
last-release/ | ||
package/ | ||
tmp/ | ||
package.zip | ||
last-release.zip | ||
.idea/ | ||
.DS_Store | ||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,6 @@ vendor | |
/.idea | ||
postfacto-api.iml | ||
db/schema.rb | ||
|
||
# Ignore public client files | ||
/client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# | ||
# Postfacto, a free, open-source and self-hosted retro tool aimed at helping | ||
# remote teams. | ||
# | ||
# Copyright (C) 2016 - Present Pivotal Software, Inc. | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# | ||
# it under the terms of the GNU Affero General Public License as | ||
# | ||
# published by the Free Software Foundation, either version 3 of the | ||
# | ||
# License, or (at your option) any later version. | ||
# | ||
# | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# | ||
# GNU Affero General Public License for more details. | ||
# | ||
# | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# | ||
class StaticController < ApplicationController | ||
def home | ||
render file: 'client/index.html', layout: false | ||
end | ||
end |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,44 @@ | ||
# | ||
# Postfacto, a free, open-source and self-hosted retro tool aimed at helping | ||
# remote teams. | ||
# | ||
# Copyright (C) 2016 - Present Pivotal Software, Inc. | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# | ||
# it under the terms of the GNU Affero General Public License as | ||
# | ||
# published by the Free Software Foundation, either version 3 of the | ||
# | ||
# License, or (at your option) any later version. | ||
# | ||
# | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# | ||
# GNU Affero General Public License for more details. | ||
# | ||
# | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# | ||
# This file is used by Rack-based servers to start the application. | ||
|
||
require_relative 'config/environment' | ||
|
||
run Rails.application | ||
if ENV['RAILS_ENV'] == 'production' | ||
require 'rack/ssl' | ||
|
||
require 'rack/cors' | ||
unless ENV['RAILS_ENV'] == 'production' | ||
use Rack::Cors do | ||
# allow all origins in development | ||
allow do | ||
origins '*' | ||
resource '*', | ||
headers: :any, | ||
methods: [:get, :patch, :post, :delete, :put, :options] | ||
end | ||
end | ||
use Rack::SSL, | ||
exclude: (lambda do |env| | ||
env['HTTP_CONNECTION'] == 'Upgrade' && env['HTTP_UPGRADE'] == 'websocket' | ||
end) | ||
end | ||
|
||
run Rails.application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.