Fix logic for "config" commands

feature/go
Luis Correia 2016-04-05 07:27:35 +01:00 zatwierdzone przez Rui Carmo
rodzic 9f0e050fa1
commit 0a7c07ee14
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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')