Applicable to:
- Plesk Onyx for Linux
Symptoms
Additional deploy actions for Git Repositories are not executed without full path in case they use commands located in /usr/local/bin/
:
Cause
This is a Plesk bug with ID EXTGIT-22 , which is planned to be fixed in the future Plesk updates.
Resolution
As a workaround there are two possible solutions:
-
Log in to Plesk
-
Specify the full path to the command in Domains > example.com > Git Repositories > Repository Settings > Actions :
OR
-
Connect to the server via SSH.
-
Create a symbolic link in
/bin/
directory to use the command without full path in Domains > example.com > Git Repositories > Repository Settings > Actions. For example:# ln -s /usr/local/bin/command /bin/command
Comments
4 comments
If I just want to run 'yarn' after each push what exactly should I write in the field?
@John Karamatsoukas
Use "/usr/bin/yarn" with the needed options
Alisa Kasyanova I did that and it still won't work, I can run the command from the terminal and it works. but it doesn't run from the git extension, additionally I wrote it into a bash script but same, nothing happens.
Maxim Krasikov When will this be fixed, it's very important now to have a smooth CI/CD workflow and the additional SSH commands are critical to make that usable, specially when we need process special processes after the automatic sync, thank you.
Motaz Elshazly we don't have any ETA for new for the fix.
Try changing Domains > example.com > Web Hosting Access > Access to the server over SSH to /bin/bash
Please sign in to leave a comment.