SOLVED Include directories for deployment in cpanel.yml?

afatah

Registered
Sep 28, 2018
3
0
1
Jeddah
cPanel Access Level
Website Owner
Hi,

I gone through cpanel documentation, but I couldn't find how to include folders for deployment.

The only reference I could find is this..

---
deployment:
tasks:
- export DEPLOYPATH=/home/user/public_html/
- /bin/cp index.html $DEPLOYPATH
- /bin/cp style.css $DEPLOYPATH
I was able to push single files but I don't know a way to do the same for directories.


Thanks
 

afatah

Registered
Sep 28, 2018
3
0
1
Jeddah
cPanel Access Level
Website Owner
Thanks for your reply..

Sorry, if I was not clear.

I would like to to push the css, js, and img folders to the $DEPLOYPATH.

For example, my repo tree is as follows:

css/...
js/...
img/...
index.html
favicon.ico