Regression: Run net-up automatically

This commit is contained in:
Jörn-Michael Miehe 2020-08-18 14:23:56 +02:00
parent 6976480dd7
commit 6f99de30d0

View file

@ -16,13 +16,19 @@ class UpCommand(FlexCommand):
) )
def _run_project(self, runner, config, args): def _run_project(self, runner, config, args):
if runner.run('net-up'):
DockerCommand('docker-compose').run( DockerCommand('docker-compose').run(
config, args, ['up', '-d'] config, args, ['up', '-d']
) )
return True return True
return False
def _run_services(self, runner, config, args, services): def _run_services(self, runner, config, args, services):
if runner.run('net-up'):
DockerCommand('docker-compose').run( DockerCommand('docker-compose').run(
config, args, ['up', '-d', *services] config, args, ['up', '-d', *services]
) )
return True return True
return False