• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Issue Cannot cd in deploy actions

topkat2

New Pleskian
Server operating system version
debian 20
Plesk version and microupdate number
18.0.43
Hi, I have tried multiple things in deploy actions:

`ls > output.log` => output the content of main folder (backend/ frontend/)
`cd ./backend/ && ls > output.log` => output nothing
`cd ./backend/ > output.log` => output an empty file

I was awaiting at least an error message. Why can't I cd in deploy actions ?

Another thing also very annoyoing is that I need to commit something to the repo & pull in order that the updates I made in deploy actions are taken in account.
 
hello @topkat2 ,

to debug you probably need to change deploy mode to manual, otherwise custom deployment actions will invoked in case push to the remote repo only.

I've created deploy actions below:
touch marker.txt;
touch tests/marker2.txt;
cd src && pwd > ~/logdepl.txt 2>&1
deploy configured to the httpdocs/course.

the result is a three files were created:
httpdocs/course/marker.txt
httpdocs/course/tests/marker2.txt

cat /var/www/vhosts/mydomain.tld/logdepl.txt
/var/www/vhosts/mydomain.tld/httpdocs/course/src
 
Back
Top