diff --git a/scripts/drevops/build.sh b/scripts/drevops/build.sh index 281d07369..bdc664a72 100755 --- a/scripts/drevops/build.sh +++ b/scripts/drevops/build.sh @@ -148,15 +148,14 @@ echo # are already compiled as a part of the Docker build. if [ -n "${DRUPAL_THEME:-}" ] && [ -z "${CI:-}" ]; then info "Installing front-end dependencies." - docker compose exec ${dcopts[@]} cli bash -c 'npm --prefix ${DREVOPS_WEBROOT}/themes/custom/${DRUPAL_THEME} install' >"${npm_verbose_output}" + docker compose exec ${dcopts[@]} cli bash -c 'npm --prefix ${DREVOPS_WEBROOT}/themes/contrib/${DRUPAL_THEME}/civictheme_library install' >"${npm_verbose_output}" + docker compose exec ${dcopts[@]} cli bash -c 'npm --prefix ${DREVOPS_WEBROOT}/themes/contrib/${DRUPAL_THEME} install' >"${npm_verbose_output}" pass "Installed front-end dependencies." - docker compose exec ${dcopts[@]} cli bash -c 'cd ${DREVOPS_WEBROOT}/themes/custom/${DRUPAL_THEME} && npm run build' >"${npm_verbose_output}" + docker compose exec ${dcopts[@]} cli bash -c 'cd ${DREVOPS_WEBROOT}/themes/contrib/${DRUPAL_THEME}/civictheme_library && npm run build' >"${npm_verbose_output}" + docker compose exec ${dcopts[@]} cli bash -c 'cd ${DREVOPS_WEBROOT}/themes/contrib/${DRUPAL_THEME} && npm run build' >"${npm_verbose_output}" pass "Compiled front-end dependencies." - mkdir -p "${DREVOPS_WEBROOT}/sites/default/files" - docker compose port cli 35729 | cut -d : -f 2 | xargs -I{} docker compose exec ${dcopts[@]} cli bash -c 'echo {} > /app/${DREVOPS_WEBROOT}/sites/default/files/livereload.sock' - pass "Created Livereload socket." echo fi