PIKU_AUTO_RESTART now defaults to true

pull/224/head
Rui Carmo 2021-12-07 09:29:35 +00:00
rodzic 4e6187ad31
commit 5ed9117655
4 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -4,7 +4,7 @@ You can configure deployment settings by placing special variables in an `ENV` f
## Runtime Settings
* `AUTO_RESTART`: Piku will restart all workers every time the app is deployed.
* `PIKU_AUTO_RESTART` (boolean, defaults to `true`): Piku will restart all workers every time the app is deployed.
### Python

Wyświetl plik

@ -2,6 +2,6 @@
# NGINX_HTTPS_ONLY=1
# NGINX_STATIC_PATHS=/path:dir,/path2:dir2...
# NGINX_INCLUDE_FILE=nginx.conf
# AUTO_RESTART=1
# PIKU_AUTO_RESTART=1
# PYTHON_VERSION=3
# NODE_VERSION=14.17.6

Wyświetl plik

@ -1 +1 @@
AUTO_RESTART=1
PIKU_AUTO_RESTART=1

Wyświetl plik

@ -846,7 +846,7 @@ def spawn_app(app, deltas={}):
write_config(live, env)
write_config(scaling, worker_count, ':')
if env.get("AUTO_RESTART", False):
if env.get('PIKU_AUTO_RESTART', 'true').lower() not in ['0', 'false']:
config = glob(join(UWSGI_ENABLED, '{}*.ini'.format(app)))
if len(config):
echo("-----> Removing uwsgi configs to trigger auto-restart.")