晚上好, 我有一个VPS,在其中设置git并遵循所有环境(nginx,unicorn,postgresql,rbenv,capistrano,rails,unicorn,nodejs)。使用git和capistrano(rails)在VPS上部署
一切似乎都工作正常,但我遇到的一些问题,当涉及到
cap deploy:cold
一些变化,我有git的,我想在同一个VPS发布应用后,但我不能得到它工作,因为它要求不同的密码是基本无用的,我明白了这个问题,我打电话给仓库就像使用github之一,似乎是错误的,但我不知道如何使用它来部署...
deploy.rb
require "bundler/capistrano"
load "config/recipes/base"
load "config/recipes/nginx"
load "config/recipes/unicorn"
load "config/recipes/postgresql"
load "config/recipes/nodejs"
load "config/recipes/rbenv"
load "config/recipes/check"
server "192.192.192.192", :web, :app, :db, primary: true
set :user, "deployer"
set :application, "phs"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
set :scm, "git"
set :repository, "#{user}@#{server}:/home/deployer/#{application}.git"
set :branch, "master"
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
after "deploy", "deploy:cleanup"
感谢你的帮助,你是我第一个应用程序
因为我只是想使用个人回购为此,问题是在20线左右,当我应该连接到我自己的本地主机我的回购他做了一个SSH我不想要,我想知道还有什么可以做到这一点 – riccardo
您是否尝试过使用https而不是本地主机或服务器IP作为主机? (只是一个理论) –