Sunday, April 3, 2022

Host web to Github with Cpanel

April 03, 2022

 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 deployment and tasks keys, 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                                                                                                

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 comments:

Post a Comment

 

© 2020 Mark2code. All rights resevered. Designed by Potfolio | Salman Ghouri

Back To Top