Commit 42dcb09c94c5cb7a11b926d90ace25c6a3dad837
Exists in
master
and in
1 other branch
Merge pull request #846 from chulkilee/fix-procfile
respect PORT env var
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
Procfile
config/unicorn.default.rb
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | worker_processes 3 # amount of unicorn workers to spin up |
4 | 4 | timeout 30 # restarts workers that hang for 30 seconds |
5 | 5 | preload_app true |
6 | -listen 8080 | |
6 | +listen ENV['PORT'] || 8080 | |
7 | 7 | pid ENV['UNICORN_PID'] if ENV['UNICORN_PID'] |
8 | 8 | |
9 | 9 | # Taken from github: https://github.com/blog/517-unicorn | ... | ... |