Skip to content

Commit 4341461

Browse files
committed
Don't use nginx
1 parent 890b7f1 commit 4341461

File tree

4 files changed

+2
-46
lines changed

4 files changed

+2
-46
lines changed

.buildpacks

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
https://github.com/heroku/heroku-buildpack-ruby.git
22
https://github.com/drogus/last-commit-sha-buildpack.git
3-
https://github.com/ryandotsmith/nginx-buildpack.git

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
web: bin/start-nginx bundle exec ./script/server
1+
web: bundle exec ./script/server
22
console: bundle exec ./script/console

config/nginx.conf.erb

Lines changed: 0 additions & 43 deletions
This file was deleted.

script/server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ cd "$(dirname "$0")/.."
33
[ $PORT ] || PORT=3000
44
[ $RACK_ENV ] || RACK_ENV=development
55

6-
cmd="ruby -I lib -S bundle exec ruby -I lib -S unicorn config.ru -E $RACK_ENV -c config/unicorn.rb"
6+
cmd="ruby -I lib -S bundle exec ruby -I lib -S unicorn config.ru -p $PORT -E $RACK_ENV -c config/unicorn.rb"
77
[[ $RACK_ENV == "development" ]] && exec rerun "$cmd -l 127.0.0.1:$PORT"
88
exec $cmd

0 commit comments

Comments
 (0)