Pause 2 seconds before starting nginx
This hopefully lets nginx start after dockergen is done. This prevents nginx from failing when there is a custom nginx config that depends on things in the generated nginx config. Fixes: GH-378
This commit is contained in:
parent
2b24c1712a
commit
048bfad743
1 changed files with 2 additions and 2 deletions
4
Procfile
4
Procfile
|
@ -1,2 +1,2 @@
|
|||
nginx: nginx
|
||||
dockergen: docker-gen -watch -only-exposed -notify "nginx -s reload" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
|
||||
nginx: sleep 2; echo "Starting nginx..."; nginx
|
||||
dockergen: echo "Starting docker-gen..."; docker-gen -watch -only-exposed -notify "nginx -s reload" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
|
||||
|
|
Loading…
Reference in a new issue