• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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