Include directories for deployment in cpanel.yml?
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..
[QUOTE]
---
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
I was able to push single files but I don't know a way to do the same for directories. Thanks
-
Not sure I understand yet. Do you mean that you only have files (no folders) checked into your git repository...or do you mean that the cp commands in your cpanel.yml only copy files one by one? 0 -
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: [QUOTE] css/... js/... img/... index.html favicon.ico 0 -
Hi, Do we have a solution to this? I've tried "cp - R" however that still doesn't work. I know I must be missing something silly. 0 -
Sorted. Sorry i had a typo further up my yml file. the solution is: - /bin/cp -R * $DEPLOYPATH 0 -
Sorted. Sorry i had a typo further up my yml file. the solution is: - /bin/cp -R * $DEPLOYPATH
I was struggling to find a solution. Thanks Chris, you are lifesaver!0 -
I bet we can include this in the official documentation in order to help others in similar situations! Thank you, all, for reporting it! 0 -
Hi, can anyone tell me where exactly to put .cpanel.yml file? in my case its not deploying automatically .. please help 0
Please sign in to leave a comment.
Comments
8 comments