Commit 941b6d53c0560d1ab5a23eb087646ceb2d513428

Authored by Chulki Lee
1 parent 5a29d3b9
Exists in master and in 1 other branch production

respect PORT env var

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
1 -web: bundle exec unicorn -p $PORT -c ./config/unicorn.default.rb 1 +web: bundle exec unicorn -c ./config/unicorn.default.rb
config/unicorn.default.rb
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 worker_processes 3 # amount of unicorn workers to spin up 3 worker_processes 3 # amount of unicorn workers to spin up
4 timeout 30 # restarts workers that hang for 30 seconds 4 timeout 30 # restarts workers that hang for 30 seconds
5 preload_app true 5 preload_app true
6 -listen 8080 6 +listen ENV['PORT'] || 8080
7 pid ENV['UNICORN_PID'] if ENV['UNICORN_PID'] 7 pid ENV['UNICORN_PID'] if ENV['UNICORN_PID']
8 8
9 # Taken from github: https://github.com/blog/517-unicorn 9 # Taken from github: https://github.com/blog/517-unicorn