I'm trying to run the command below in the GOCD terminal, but the error always occurs:
Command
ssh root@host 'cd /var/www/gda-frontend/ && docker-compose up -d --build'
Error
bash: cd / var / www / gda-frontend / & docker-compose up -d --build: File or directory not found
The directory exists, but it can not rotate. And there is already the connection via ssh without a password between the two.
Even if you run only cd
, without the docker-compose
command, the error occurs.