Unable to run ruby script to git pull from github -
I have a Rail Server in Ubuntu 14.04 example and I host my code in github.com. To push the user's gitubon, I have set up a webhose for my app that listens to a POST call from Gitub and when a Ruby script tries to execute gitscript.rb, then all the correct payloads in POST Are there.
Unfortunately the script does not pull a git and I'm stumped to run it completely any help would be appreciated.
The code below is my code to listen to and runs this script, but the commands given in the script do not run, I need all the permissions for the Ruby script. / P>
def webhooks push = JSON.parse (request.body.read) if some_condition_that_should_be_true logger.info "Yes Run ahead and drag" logger.info "Jiaiti bridge" command if `cd / Home / Server & amp; Amp; GIT Bridges & gt; & Gt; "Ruby / Home / Server / GIScriptRbb" logger.info "Last Command" and "logger.info Push and Render: json => {: Code => 'Webhocks Nice'},: Status = & Gt; 200 End
and my ruby script is below and yes, all its permissions are correct, for testing, I made them 777
! / Bin / env ruby cd / home / server & amp; git bridge
The user who runs the script may have more read / write on There are no GIT repositories (here are not talking about permissions, but there is more information about the deployment key
, which is to read only one SSH keys in the remote GIP repo and / Or allow to write).
Can you pull git
which is running this script on your server?
Comments
Post a Comment