How to Schedule cPanel Git Deployment with Cron Print

  • cpanel, cron, deployment, git
  • 0

cPanel documents a workflow for scheduling deployment-related Git commands through Cron Jobs.

  1. Open Git Version Control and note the repository path.
  2. Determine the deployment command appropriate for the repository.
  3. Open cPanel → Advanced → Cron Jobs.
  4. Create a schedule that leaves enough time for the previous run to finish.
  5. Use absolute paths where required.

Test the command manually when possible before scheduling it. An incorrect recurring deployment command can repeatedly overwrite or copy files.


Was this answer helpful?

« Back