Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 通过capistrano部署失败_Ruby On Rails_Deployment_Mercurial_Capistrano - Fatal编程技术网

Ruby on rails 通过capistrano部署失败

Ruby on rails 通过capistrano部署失败,ruby-on-rails,deployment,mercurial,capistrano,Ruby On Rails,Deployment,Mercurial,Capistrano,我制作了一个deploy.rb脚本来通过capistrano部署rails应用程序。问题是,当我运行cap deploy时,克隆过程出现了一些问题,我不知道这个版本是什么。这是我的deploy.rb: 需要“rvm/capistrano” 需要“捆绑机/capistrano” 有人能帮我吗 PS:我忘了告诉我的存储库有两个子存储库,这是问题所在还是我需要为此设置任何选项?尝试删除/home/user/shared/中的缓存副本文件夹,你能确认你已经推送了你的最新提交吗(70d2fc5e4a40)

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

有人能帮我吗


PS:我忘了告诉我的存储库有两个子存储库,这是问题所在还是我需要为此设置任何选项?

尝试删除/home/user/shared/中的缓存副本文件夹,你能确认你已经推送了你的最新提交吗(70d2fc5e4a40)到bitbucket?Jesse Wolgamott你的意思是问题可能是我仍然有本地未限制的更改吗?@Vimsha我删除了缓存的副本文件夹,然后运行了相同的部署result@JesseWolgamott我提交了所有本地更改并将其推送到存储库,然后再次尝试部署,但结果相同
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'!
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