2
我想知道爲什麼我的上限部署失敗。Capistrano部署失敗,「無法讀取用戶名」
我正在使用capistrano。
這裏是我的deploy.rb:
set :application, "gppb"
set :repository, "[email protected]: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
這應該寫在deploy.rb文件裏面嗎? – xirukitepe 2013-02-18 03:06:27
是的 - 你目前有:用戶設置爲「gppb.com」,這不是一個有效的用戶名。 – platforms 2013-02-18 03:07:28
我會盡力的。謝謝。我會盡快給您回覆。 :) – xirukitepe 2013-02-18 03:08:11