Attempting to deploy an application through Capistrano for the first time, having problems

I am trying to deploy a Rails application through Capistrano, but I am having problems. Messages that are returned in the terminal are as follows:

    victor$ cap deploy
  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "git ls-remote git@github.com:victory/PUM.git HEAD"
/Library/Ruby/Gems/1.8/gems/capistrano-2.5.19/lib/capistrano/recipes/deploy.rb:98: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/Library/Ruby/Gems/1.8/gems/capistrano-2.5.19/lib/capistrano/recipes/deploy.rb:98: command not found: git ls-remote git@github.com:victory/PUM.git HEAD
*** [deploy:update_code] rolling back
  * executing "rm -rf /passenger/nginx/pumpl/releases/20101020025555; true"
    servers: ["188.126.236.269"]
Password:

I tried to do a Google search, but I was having trouble finding a good answer.

+3
source share
2 answers

I finally figured it out.

I just switched to a new Mac that didn't have Xcode installed. This is why Macports is not working properly. I installed Xcode, and after that I can now deploy just fine.

0
source

It would seem that your remote installation lacks git. Have you tried to do

cap deploy:check

To check the environment and

cap deploy:setup

To configure the necessary files?

+7

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


All Articles