amke hot reload work for node app

This commit is contained in:
counterweight 2025-02-19 18:49:10 +01:00
parent 2ae502e790
commit c3e363fb9b
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 6 additions and 1 deletions

View file

@ -20,7 +20,7 @@ su - postgres -c "psql -c \"CREATE DATABASE $POSTGRES_DB OWNER $POSTGRES_USER;\"
caddy run --config /etc/caddy/Caddyfile &
# Start Express app
npm start
exec nodemon src/app.js
# Keep container running
wait