Host web to Github with Cpanel
Deploy individual files
The following .cpanel.yml file deploys the index.html and style.css files to the example account’s public_html directory:
- Line 1 is the beginning of a YAML file.
- Lines 2 and 3 add the
deploymentandtaskskeys, respectively. - Lines 4 through 6 specify an array of BASH commands to run during deployment. You can add as many commands to this array as you wish.
---
deployment:
tasks:
- export DEPLOYPATH=/home/user/public_html/
- /bin/cp index.html $DEPLOYPATH
- /bin/cp style.css $DEPLOYPATH

0 comments:
Post a Comment