diff --git a/Procfile b/Procfile index b9b4d97..8fd8940 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: bundle exec unicorn -p $PORT -c ./config/unicorn.default.rb +web: bundle exec unicorn -c ./config/unicorn.default.rb diff --git a/config/unicorn.default.rb b/config/unicorn.default.rb index 3cd7d2c..2951dcd 100644 --- a/config/unicorn.default.rb +++ b/config/unicorn.default.rb @@ -3,7 +3,7 @@ worker_processes 3 # amount of unicorn workers to spin up timeout 30 # restarts workers that hang for 30 seconds preload_app true -listen 8080 +listen ENV['PORT'] || 8080 pid ENV['UNICORN_PID'] if ENV['UNICORN_PID'] # Taken from github: https://github.com/blog/517-unicorn -- libgit2 0.21.2