dg / ftp-deployment

A tool for automated deployment of web applications to an FTP server.
https://nette.org
Other
601 stars 89 forks source link

SITE EXEC not understood #155

Closed ZdenekKrcal closed 2 years ago

ZdenekKrcal commented 2 years ago

Version: 3.5.1

after[] = remote: php app/artisan optimize:clear

After-jobs:
remote: chmod 0776 app/bootstrap/cache
remote: php app/artisan optimize:clear
Error: Deployment\ServerException: 'SITE EXEC' not understood in phar

dg commented 2 years ago

You'll have to investigate that deeply.

ZdenekKrcal commented 2 years ago

it is not possible to call command: php something.php on remote after uploaded. (remote: php .....)

dg commented 2 years ago

The FTP server simply does not allow it.

ZdenekKrcal commented 2 years ago

But you have solved same problem with chmod here:

https://github.com/dg/ftp-deployment/issues/142

dg commented 2 years ago

Because there was possible to use the ftp_chmod() function. For others command is used ftp_exec() and the server doesn't seem to support it.