richarvey / nginx-php-fpm

Nginx and php-fpm for dockerhub builds
https://hub.docker.com/repository/docker/richarvey/nginx-php-fpm/general
GNU General Public License v3.0
1.66k stars 852 forks source link

Q: Cron job to pull or fetch repo every 1 minute #293

Open rahulmr opened 9 months ago

rahulmr commented 9 months ago

Could you please suggest any better method(s) for doing git pull or git fetch every 1 minute or when new changes are there in the repo main branch branch?

I tried setting cron job inside the container but it did not work from inside container.

I had to setup cron job on server like below

* * * * * docker exec <container_name> git pull

Please do suggest any better options.