Hi Experts,
I am trying to Deploy website from GitHub to CPanel. I have 2 folder: 'documentation' and 'website' in GitHub. I can deploy both folder to 'public_html' using 'Git Version Control' in Cpanel. But my requirement is I would like to move the files inside the 'website' folder to root of 'publc_html' and i don't want to pull 'documentation' folder to 'public_html'. I tried the following code. But my files inside 'website' folder is moving to 'public_html' only for first time of deployment and it is not working when i create new files and try to deployment. And also i need to avoid the 'documentation' folder on deployment. So please advice me whats wrong with my code. Awaiting for anyone's help on this as i am wasting days for this. Thanks in advance!
---
deployment:
tasks:
- export DEPLOYPATH=/home/igmengct/public_html/
- /bin/cp website/* $DEPLOYPATH
- /bin/cp miscellanious/* $DEPLOYPATH
I am trying to Deploy website from GitHub to CPanel. I have 2 folder: 'documentation' and 'website' in GitHub. I can deploy both folder to 'public_html' using 'Git Version Control' in Cpanel. But my requirement is I would like to move the files inside the 'website' folder to root of 'publc_html' and i don't want to pull 'documentation' folder to 'public_html'. I tried the following code. But my files inside 'website' folder is moving to 'public_html' only for first time of deployment and it is not working when i create new files and try to deployment. And also i need to avoid the 'documentation' folder on deployment. So please advice me whats wrong with my code. Awaiting for anyone's help on this as i am wasting days for this. Thanks in advance!
---
deployment:
tasks:
- export DEPLOYPATH=/home/igmengct/public_html/
- /bin/cp website/* $DEPLOYPATH
- /bin/cp miscellanious/* $DEPLOYPATH
Last edited by a moderator: