diff --git a/sh/npm-watch.sh b/sh/npm-watch.sh index 09ff42e..a320ca1 100644 --- a/sh/npm-watch.sh +++ b/sh/npm-watch.sh @@ -9,4 +9,6 @@ source ./sh/utils/colors source ./.env # Run watch in theme folder -docker compose -f docker-compose.build.yml run --service-ports --rm --build node npm run watch --prefix ./wp-content/themes/"${WP_DEFAULT_THEME}" +docker compose -f docker-compose.build.yml run --rm node su -c "\ + npm run watch --prefix ./wp-content/themes/${WP_DEFAULT_THEME}" \ + "${DEFAULT_USER}"