Separating [GIT] Additional deploy actions in Before & After actions & add logging
I find the GIT extension to be a great Plesk addon. It really helps developers to speed up the deployment, however, at the moment it's really basic even though it does what it's supposed to do.
I have two simple suggestions:
1. Separate Additional deploy actions in Before and After actions so commands can be executed before the actual deployment happens. An example could be some backup can happen during this time.
- Add logging into the Additional deploy actions so the output can be saved on a Plesk log that can be accessed from the UI.
Thanks!
-
Damien commented
Logging is essential - especially because:
* git actions are executed using a different shell (/bin/sh) vs. whatever is configured for the system user (so environment or other nuances may cause unexpected errors)
* errors are silent and fatal (the commands appear to executed as "command1 && command2", so command2 will only be executed if command1 has a clean exit code)
* execution starts from the git deploy directory (not the system user home directory), so again this can be a source of user error when specifying the commands
* troubleshooting and debugging all of the above is awkward: you have to write your own log files (e.g. redirecting command output) which is not at all elegant or intuitive for a typical developer who just wants to get their stuff deployed and working!