Introduction
This guide will describe how to configure deployment in Git Version control when working with Remote repositories.
Procedure
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.
Filename: .cpanel.yml
Note: The beginning dot character is part of the filename.
With the YAML file, you can deploy individual files or whole directories. 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 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.