Hi there,
I deploy files from my repo to the public_html folder via the .cpanel.yml file, this works great.
BUT...
I want to delete the files that are already in public_html because i don't want the different versions to overlap.
Tried this, it deletes the files but then failes at copying the new ones:
Could anyone tell me why this won't work and possibly suggest a solution?
Thanks in advance,
Bart
I deploy files from my repo to the public_html folder via the .cpanel.yml file, this works great.
BUT...
I want to delete the files that are already in public_html because i don't want the different versions to overlap.
Tried this, it deletes the files but then failes at copying the new ones:
Code:
---
deployment:
tasks:
- export DEPLOYPATH=/home/<username>/public_html/
- cd ../../public_html
- rm -r *
- mkdir test
- cd ../repositories/cprepo
- cp README.md $DEPLOYPATH
Thanks in advance,
Bart
Last edited by a moderator: