You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command: watchexec -q -w /etc/nginx/conf.d/*.template nginx -s reload
I'm using watchexec to monitor the base template of nginx in the Docker image I created. This setup ensures that any modifications trigger the generation of a new configuration and subsequently reload nginx. Locally, on my MacOS, this setup works perfectly with Docker Compose, using the following volume configuration:
volumes:
- ./etc/conf.d/local/:/etc/nginx/conf.d/
However, when I deploy this setup on a server, where the code is pulled from a git repository, updates from the repository should modify the source code on the server. Despite this, watchexec seems unable to detect changes to /etc/nginx/conf.d/*.template, even when the contents are altered.
The text was updated successfully, but these errors were encountered:
I use the command watchexec -w /etc/nginx/conf.d/*.template. Is the wildcard causing the issue? My goal is to have my own custom script that reads /etc/nginx/conf.d/default.conf.template and generates the configuration file /etc/nginx/conf.d/default.conf in the end.
I am wondering if the command I used above is working for the local setup, but it is not producing the same result on the live server.
Information:
2.1.2
Ubuntu 22.04
watchexec -q -w /etc/nginx/conf.d/*.template nginx -s reload
I'm using
watchexec
to monitor the base template of nginx in the Docker image I created. This setup ensures that any modifications trigger the generation of a new configuration and subsequently reload nginx. Locally, on my MacOS, this setup works perfectly with Docker Compose, using the following volume configuration:However, when I deploy this setup on a server, where the code is pulled from a git repository, updates from the repository should modify the source code on the server. Despite this,
watchexec
seems unable to detect changes to/etc/nginx/conf.d/*.template
, even when the contents are altered.The text was updated successfully, but these errors were encountered: