Skip to content

Commit

Permalink
fix watcher run from root user
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriipavlov committed Jun 19, 2024
1 parent 3205d8b commit 9f20b37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sh/npm-watch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 9f20b37

Please sign in to comment.