通过capistrano部署失败

时间:2013-06-17 13:43:13

标签: ruby-on-rails deployment mercurial capistrano

2013-06-17 15:23:22 executing `deploy'
* 2013-06-17 15:23:22 executing `deploy:update'
** transaction: start
* 2013-06-17 15:23:22 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "hg log --verbose -r tip --template \"{node|short}\""
command finished in 74ms
* executing "if [ -d /home/user/shared/cached-copy ]; then hg pull --verbose --repository /home/user/shared/cached-copy ssh://hg@bitbucket.org/user/myapp && hg update --verbose --repository /home/user/shared/cached-copy --clean 70d2fc5e4a40; else hg clone --verbose --noupdate ssh://hg@bitbucket.org/user/myapp /home/user/shared/cached-copy && hg update --verbose --repository /home/user/shared/cached-copy --clean 70d2fc5e4a40; fi"

[192.168.1.204] executing command
** [192.168.1.204 :: out] running ssh hg@bitbucket.org 'hg -R user/myapp serve --stdio'
** [192.168.1.204 :: out] pulling from ssh://hg@bitbucket.org/user/myapp    ** [192.168.1.204 :: out] searching for changes
** no changes found
** [192.168.1.204 :: out] remote: Warning: Permanently added the RSA host key for IP address '207.223.240.182' to the list of known hosts.
** [192.168.1.204 :: out] abort: unknown revision '70d2fc5e4a40'!

我制作了一个deploy.rb脚本来通过capistrano部署rails应用程序,问题是当我运行cap deploy时,克隆过程出了问题,而且id不知道这个版本是什么。这是我的deploy.rb:     要求“rvm / capistrano”     要求“bundler / capistrano”

set :application, "myapp"
set :use_sudo , false
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
set :rvm_type, :user                      
set :rvm_install_with_sudo, true
set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"") 
set :scm, :mercurial
set :repository,  "ssh://hg@bitbucket.org/user/myapp"
set :deploy_to, "/home/user/"
set :user, "user"
set :scm_verbose, true
set :deploy_via, :remote_cache
ssh_options[:forward_agent] = true

任何人都可以帮助我吗?

PS:我忘了告诉我的存储库有两个子存储库会出现问题,还是我需要为它设置任何选项?

0 个答案:

没有答案