kopia lustrzana https://github.com/piku/piku
Fix logic for "config" commands
rodzic
9f0e050fa1
commit
0a7c07ee14
2
piku.py
2
piku.py
|
@ -359,6 +359,7 @@ def deploy_app(app):
|
||||||
config_file = join(ENV_ROOT, app, 'ENV')
|
config_file = join(ENV_ROOT, app, 'ENV')
|
||||||
if exists(config_file):
|
if exists(config_file):
|
||||||
echo(open(config_file).read().strip(), fg='white')
|
echo(open(config_file).read().strip(), fg='white')
|
||||||
|
else:
|
||||||
echo("Warning: app '%s' not deployed, no config found." % app, fg='yellow')
|
echo("Warning: app '%s' not deployed, no config found." % app, fg='yellow')
|
||||||
|
|
||||||
|
|
||||||
|
@ -420,6 +421,7 @@ def deploy_app(app):
|
||||||
live_config = join(ENV_ROOT, app, 'LIVE_ENV')
|
live_config = join(ENV_ROOT, app, 'LIVE_ENV')
|
||||||
if exists(live_config):
|
if exists(live_config):
|
||||||
echo(open(live_config).read().strip(), fg='white')
|
echo(open(live_config).read().strip(), fg='white')
|
||||||
|
else:
|
||||||
echo("Warning: app '%s' not deployed, no config found." % app, fg='yellow')
|
echo("Warning: app '%s' not deployed, no config found." % app, fg='yellow')
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue