Capistrano and GitHub Private Repo – Permission denied (publickey)

前端 未结 6 1767
栀梦
栀梦 2021-02-09 01:31

I\'ve inherited a Rails project, hosted on Linode.

The previous developer was using a BitBucket repository, along with Capistrano for deployments.

I\'ve since

6条回答
  •  春和景丽
    2021-02-09 02:02

    for me the only way it has deploy was:

    adding the local id_rsa to the server cat ~/.ssh/github_rsa.pub | ssh -i /Users/jasmo2/Documents/AWS-keypair/designmatch.pem ubuntu@52.37.202.32 "cat >> .ssh/authorized_keys"

    after typing the command. Is preferable to set the set :ssh_options. Then set :use_sudo, true on the deploy.rb file. Finally instal

    • On the server :

    sudo apt-get install libpq-dev gem install pg -v '0.18.4'

    • On the deploy.rb (local):

    desc 'Restart application' task :restart do on roles(:app), in: :sequence, wait: 5 do execute :mkdir, '-p', "#{ release_path }/tmp" execute :touch, release_path.join('tmp/restart.txt') end end

提交回复
热议问题