Commit 80e5aa40 authored by Jon Pugh's avatar Jon Pugh

Replacing Robo taskExec() for docker-compose up with a ServerContext::shell_exec().

parent a975d571
...@@ -197,15 +197,13 @@ YML; ...@@ -197,15 +197,13 @@ YML;
->start("Running <info>docker-compose up -d</info> in <info>{$this->provider->server_config_path}</info> ...") ->start("Running <info>docker-compose up -d</info> in <info>{$this->provider->server_config_path}</info> ...")
->execute(function() { ->execute(function() {
return Provision::getProvision()->getTasks()->taskExec('docker-compose') return $this->provider->shell_exec(Provision::getProvision()->getTasks()->taskExec('docker-compose')
->dir($this->provider->server_config_path) ->dir($this->provider->server_config_path)
->arg('up') ->arg('up')
->arg('-d') ->arg('-d')
->arg('--build') ->arg('--build')
->silent(!$this->getProvision()->getOutput()->isVerbose()) ->getCommand()
->run() , NULL, 'exit');
->getExitCode()
;
}) })
; ;
// Run docker-compose up -d --build // Run docker-compose up -d --build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment