2

我想知道为什么我的上限部署失败。

我正在使用 capistrano。

这是我的 deploy.rb:

set :application, "gppb"
set :repository,  "git@github.com:AppSource/gppb.git"
set :scm, :git
set :user, "gppb.com"
set :deploy_to, "/home/gppb.com/apps/#{application}"
set :use_sudo, false
set :keep_releases, 5
# set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`

role :web, "test.gppb.appsource.biz"                          # Your HTTP server, Apache/etc
role :app, "test.gppb.appsource.biz"                          # This may be the same as your `Web` server
role :db,  "test.gppb.appsource.biz", :primary => true # This is where Rails migrations will run

# if you want to clean up old releases on each deploy uncomment this:
# after "deploy:restart", "deploy:cleanup"

# if you're still using the script/reaper helper you will need
# these http://github.com/rails/irs_process_scripts

# If you are using Passenger mod_rails uncomment this:
namespace :deploy do
  task :start do ; end
  task :stop do ; end
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
  end
end

这是错误:

在此处输入图像描述

要查看完整图像,请单击此处-> http://d.pr/i/wnIb

4

1 回答 1

1

看起来您应该将 :user 设置为“gppbv2”。这是服务器上远程用户的参数。此外,Unix 用户名中不能有句点。

于 2013-02-18T03:04:38.790 回答