Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

Commit

Permalink
Fixing commands to build an image
Browse files Browse the repository at this point in the history
Also, running the commands is synchronous.
  • Loading branch information
Ahmad N. Raja committed Nov 22, 2018
1 parent cf6d157 commit 3e5c4ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function runRaw(cmd, path) {
cmd = 'cd ' + path + ' && ' + cmd;
}
console.log(colors.gray(cmd));
var exec = shelljs.exec(cmd, {silent: true});
var exec = shelljs.execSync(cmd, {silent: true});
console.log(colors.gray(exec.stdout || exec.stderr));
}

Expand Down
3 changes: 2 additions & 1 deletion service-definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ var services = {
isRunning : 'docker ps | grep {service-id}',
bootstrap : 'scripts/bootstrap.sh',
exec : "./project-runner/run.sh dev run --rm app sh -c '{{COMMAND}}'",
image : ['project-runner/load-image.sh -d prod', 'project-runner/load-image.sh -d dev']
image : ['project-runner/load-image.sh prod', 'project-runner/load-image.sh dev'
]
}
};

Expand Down

0 comments on commit 3e5c4ac

Please sign in to comment.