I have setup the .cpanel.yml file with all the needed information. The first deployment creates the folder and deploys all the files in the specified directory (<subfolderName>). The next deployment will create a new subfolder within the created folder (<subfolderName>) and deploys all the information into this folder.
How should i setup the yml file, to make sure it deploys to the samen directory each time?
How should i setup the yml file, to make sure it deploys to the samen directory each time?
Bash:
- export DEPLOYPATH=/home/<username>/public_html/<subfolderName>/
- /bin/cp -R /home/<username>/repositories/<repo name>/src $DEPLOYPATH