This guide will describe how to configure deployment in Git Version control when working with Remote repositories.
To deploy changes from a cPanel managed Git repository, you need to create a deployment YAML file. The YAML file should be in the top-level directory of the repository.
Note: The beginning dot character is part of the Filename.
With the YAML file, you can deploy individual files or whole directories. So it is essential to establish what you want to "deploy" when creating the file. With cPanel, you have two main options for deployment.
- Automatic or push deployment
- Manual or pull deployment
Please review the documentation URL for more specific details on this process.
Also worth noting with manual deployment, you can configure a cron to deploy changes at any time. See the documentation URL below for details on setting up the cron.