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