Skip to content

Commit b670f87

Browse files
committed
[163] Run commands individually so they can be fed to the right service every time
1 parent 79e85f2 commit b670f87

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.ddev/commands/host/setup-drupal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ if [ ${DDEV_MUTAGEN_ENABLED} ]; then
3030
ddev mutagen sync || true
3131
fi
3232

33-
INSTALL_PACKAGES="npm install --package-lock-only && npm ci && pm2 restart all"
34-
35-
ddev exec -s=frontend "${INSTALL_PACKAGES}" || ddev exec "${INSTALL_PACKAGES}"
33+
ddev exec -s=frontend "npm install --package-lock-only" || ddev exec "npm install --package-lock-only"
34+
ddev exec -s=frontend "npm ci" || ddev exec "npm ci"
35+
ddev exec -s=frontend "pm2 restart all" || ddev exec "pm2 restart all"

.ddev/commands/host/setup-wp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ if [ ${DDEV_MUTAGEN_ENABLED} ]; then
3636
ddev mutagen sync || true
3737
fi
3838

39-
INSTALL_PACKAGES=npm install --package-lock-only && npm ci && pm2 restart all
40-
41-
ddev exec -s=frontend "${INSTALL_PACKAGES}" || ddev exec "${INSTALL_PACKAGES}"
39+
ddev exec -s=frontend "npm install --package-lock-only" || ddev exec "npm install --package-lock-only"
40+
ddev exec -s=frontend "npm ci" || ddev exec "npm ci"
41+
ddev exec -s=frontend "pm2 restart all" || ddev exec "pm2 restart all"

0 commit comments

Comments
 (0)