kopia lustrzana https://github.com/piku/piku
Merge pull request #348 from fincham/master
Improves the accuracy of nginx configuration failure checkingpull/367/head
commit
d257fee0c4
2
piku.py
2
piku.py
|
@ -974,7 +974,7 @@ def spawn_app(app, deltas={}):
|
|||
h.write(buffer)
|
||||
# prevent broken config from breaking other deploys
|
||||
try:
|
||||
nginx_config_test = str(check_output("nginx -t 2>&1 | grep {}".format(app), env=environ, shell=True))
|
||||
nginx_config_test = str(check_output("nginx -t 2>&1 | grep -E '{}\.conf:[0-9]+$'".format(app), env=environ, shell=True))
|
||||
except Exception:
|
||||
nginx_config_test = None
|
||||
if nginx_config_test:
|
||||
|
|
Ładowanie…
Reference in New Issue