Regression: Run net-up automatically
This commit is contained in:
parent
6976480dd7
commit
6f99de30d0
1 changed files with 14 additions and 8 deletions
|
@ -16,13 +16,19 @@ class UpCommand(FlexCommand):
|
||||||
)
|
)
|
||||||
|
|
||||||
def _run_project(self, runner, config, args):
|
def _run_project(self, runner, config, args):
|
||||||
DockerCommand('docker-compose').run(
|
if runner.run('net-up'):
|
||||||
config, args, ['up', '-d']
|
DockerCommand('docker-compose').run(
|
||||||
)
|
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):
|
||||||
DockerCommand('docker-compose').run(
|
if runner.run('net-up'):
|
||||||
config, args, ['up', '-d', *services]
|
DockerCommand('docker-compose').run(
|
||||||
)
|
config, args, ['up', '-d', *services]
|
||||||
return True
|
)
|
||||||
|
return True
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
Loading…
Reference in a new issue