Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use port from environment; Add start script
- Loading branch information
1 parent
e3c690d
commit 9d2e8cc
Showing
3 changed files
with
12 additions
and
2 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 |
---|---|---|
|
@@ -5,6 +5,5 @@ | |
/public/system/* | ||
.DS_Store | ||
**/.DS_Store | ||
/start.sh | ||
/.redcar | ||
/public/assets |
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,2 +1,2 @@ | ||
web: bundle exec puma -p 3000 | ||
web: bundle exec puma -p $PORT | ||
sidekiq: bundle exec sidekiq -C config/sidekiq.yml |
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,11 @@ | ||
#!/bin/bash -i | ||
|
||
#Change directory into the directory containing this script | ||
cd "$(dirname "$(readlink -f "$0")")" | ||
|
||
exec >>log/start.log | ||
exec 2>&1 | ||
|
||
bundle exec rake assets:precompile assets:clean_expired | ||
pkill -f foreman | ||
RACK_ENV=production PORT=3000 bundle exec foreman start & |