Hallo,
I am trying to use the git push deployment as shown https://documentation.cpanel.net/display/CKB/Guide+to+Git+-+How+to+Set+Up+Deployment.
The only problem that i face is the lack of information about the `.cpanel.yml`, this is the only information i have:
Based on this i create a file that holds a create lines for all directories and a copy lines for each file. I am also able to use composer.
I have search the net, but found nothing, about how to use yaml for this type of deployment.
Questions
* Is the target directory cleared (directory/files deleted) before the yaml is run?
If yes, how do i prevent that some directories/files are deleted?
If no, what is the best way to handle directory and file deletion?
* Where can i find more detail information about allowed yaml commands that can be used for deployment. Or should i say, where can i find more information about the hook that uses the yaml file.
Note:
While typing i noted that i can reduce the create directory and copy files if i use something like this
Regards
Edwin Huijsing
I am trying to use the git push deployment as shown https://documentation.cpanel.net/display/CKB/Guide+to+Git+-+How+to+Set+Up+Deployment.
The only problem that i face is the lack of information about the `.cpanel.yml`, this is the only information i have:
Code:
---
deployment:
tasks:
- export DEPLOYPATH=/home/user/public_html/
- /bin/cp index.html $DEPLOYPATH
- /bin/cp style.css $DEPLOYPATH
I have search the net, but found nothing, about how to use yaml for this type of deployment.
Questions
* Is the target directory cleared (directory/files deleted) before the yaml is run?
If yes, how do i prevent that some directories/files are deleted?
If no, what is the best way to handle directory and file deletion?
* Where can i find more detail information about allowed yaml commands that can be used for deployment. Or should i say, where can i find more information about the hook that uses the yaml file.
Note:
While typing i noted that i can reduce the create directory and copy files if i use something like this
Code:
cp -r ./SourceFolder ./DestFolder
Edwin Huijsing