Skip to content

Commit

Permalink
Add: "node" command.
Browse files Browse the repository at this point in the history
  • Loading branch information
imagina committed Nov 5, 2020
1 parent b3ce5bd commit 81d1e89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dcp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ if [ $# -gt 0 ]; then
shift 1
EXEC_CMD="cd /var/www/html && php $@"
$COMPOSE exec app bash -c "$EXEC_CMD"
elif [ "$1" == "node" ]; then
shift 1
EXEC_CMD="cd /var/www/html && node $@"
$COMPOSE exec app bash -c "$EXEC_CMD"
else
$COMPOSE $@
fi
Expand Down

0 comments on commit 81d1e89

Please sign in to comment.