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

Open
opened 2024-01-10 03:51:29 +00:00 by rahulmr · 0 comments
rahulmr commented 2024-01-10 03:51:29 +00:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ric/nginx-php-fpm#293
No description provided.