Skip to content

Commit

Permalink
Utilize the Nginx buildpack
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Aug 23, 2015
1 parent 1f96030 commit cd5f84d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exclude .dockerignore Dockerfile docker-compose.yml
exclude Procfile runtime.txt

prune bin
prune conf
prune vcl
prune .travis
prune dev
Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: bin/fastly-config && bin/start-stunnel newrelic-admin run-program gunicorn -b 0.0.0.0:$PORT --preload warehouse.wsgi
web: bin/fastly-config && bin/start-stunnel bin/start-nginx newrelic-admin run-program gunicorn -c conf/gunicorn.conf -b unix:/tmp/nginx.socket --preload warehouse.wsgi
worker: bin/start-stunnel newrelic-admin run-program celery -A warehouse worker -l info
6 changes: 6 additions & 0 deletions conf/gunicorn.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env python


def when_ready(server):
with open("/tmp/app-initialized", "w"):
pass

0 comments on commit cd5f84d

Please sign in to comment.