Remember the merge script I created?
I've taken it a step further by automating the process using a cron job. Now, the server automatically fetches updates from the Git repository every day at midnight (CET, German time), saving time and ensuring the latest changes are always synced.
Here's the cron job I set up for this task:
0 0 * * * /bin/bash /var/www/merge.sh
This cron job ensures that the script runs at 00:00 (midnight) every day, automatically keeping everything up to date. It’s a simple yet effective way to streamline the process!