Capistrano 3 Resolution rejected

I am converting an application from capistrano version 2 to version 3 and now I get this error:

DEBUG [7095ead3] Running /usr/bin/env git ls-remote git@myapp.git.beanstalkapp.com:/myapp/myapp.git on myapp.com
DEBUG [7095ead3] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/myapp.com/git-ssh.sh /usr/bin/env git ls-remote git@myapp.git.beanstalkapp.com:/myapp/myapp.git )
DEBUG [7095ead3]        fatal: cannot exec '/tmp/myapp.com/git-ssh.sh': Permission denied
DEBUG [7095ead3]        fatal: unable to fork
DEBUG [7095ead3] Finished in 0.195 seconds with exit status 128 (failed).

How can I get past this?

+4
source share
2 answers

I ran into this problem and solved it by reading this site ( https://community.webfaction.com/questions/15144/capistrano-3-deploys-fatal-error-executing-tmpmyappgit-sshsh )

So this is what I tried

  • Create dmp dmp in your home directory
  • I added to my .bashrc

    export TMPDIR = "$ HOME / tmp"

  • In deploy.rb add this

    set: tmp_dir, "# {fetch (: home)} / tmp"

, , , !: D

+7
0

Source: https://habr.com/ru/post/1535602/


All Articles