Introduction
This guide will describe configuring 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 in the repository's top-level directory.
Filename: .cpanel.yml
Please note that the beginning dot character is part of the filename.
With the YAML file, you can deploy individual files or whole directories. Establishing what you want to deploy when creating the file is essential. With cPanel, you have two main deployment options.
- Automatic or push deployment
- Manual or pull deployment
Please review the documentation for more specific details on this process.
It is also worth noting that 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.
Comments
0 comments
Article is closed for comments.