-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A couple fixes and addons #6
Conversation
Thanks so much for improving this tool. There are some suggestion and question on this PR:
The feature about root user and group options looks great, I will merge this PR after your fixes. Cheers |
Hi there,
1st will do git fetch only, 2nd will fetch changes as well as run additional task. I will back later with fixes. Thank you. |
Yes. I have same problem as you. Sometimes we need to update composer/npm packages, but we don't want it run every time unless it is updated for saving task time. And I found a useful gist:sindresorhus/7996717 there, for checking to run tasks base on updated items. I think hookagent should just play a more common role as receiving post hook request and trigger the code update. But after new code updated, what tasks to be run should depend on each project. And now I realized the parameters in post hook request is also a bad design. Because anyone will add only one post hook for a project to a server. Whatever the remote/branch parameters are, there can be only one, or there will be duplicated requests. A better way to avoid this while we want to make different branches to update their paths is, to analyze which branch/commit come from in the post data. This is also a thought in my mind but have no time to implement. I think the parameters in post request URL should also be deprecated in some day. But in config file it could be kept for different paths. So, for the |
Close due to deprecating feature and long time no updated. |
child_process.execFile bin/deploy.sh
as root if"sudo:true"
and invoke it by itself with "sudo -H"$user:$group
, instead of$user:root
"start to run shell script: sh $task $path $branch"