Check for presence iof dockergen.conf
instead of hard-coded sleep of 2 seconds which is not super reliable
This commit is contained in:
parent
048bfad743
commit
46684b7a66
1 changed files with 2 additions and 2 deletions
4
Procfile
4
Procfile
|
|
@ -1,2 +1,2 @@
|
|||
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
|
||||
nginx: while [ ! -f /etc/nginx/conf.d/dockergen.conf ]; do echo "Waiting for dockergen.conf to appear before starting nginx..."; sleep 1; done; 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/dockergen.conf
|
||||
|
|
|
|||
Loading…
Reference in a new issue