破旧的发布capistrano,如何使用新版本?

时间:2012-03-22 11:56:35

标签: ruby-on-rails deployment capistrano

我使用命令创建了新版本:

cap deploy

我已删除旧版本:

cap deploy:cleanup -s keep_releases=1

我的deploy.rb工作正常:

$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load pathe
require "rvm/capistrano"                  # Load RVM's capistrano plugin.
require "bundler/capistrano"
set :rvm_ruby_string, 'ruby-1.9.2-p318@global'  
set :rvm_type, :user
set :application, "mydomain.com"
set :user, 'user'
set :repository,  "#{user}@ip.ip.ip.ip:~/application"
set :scm, :git
set :use_sudo, false
set :deploy_via, :copy
set :keep_releases, 2
set :deploy_to, "~/#{application}"
role :web, "ip.ip.ip.ip"                          # Your HTTP server, Apache/etc
role :app, "ip.ip.ip.ip"                          # This may be the same as your `Web` server
role :db,  "ip.ip.ip.ip", :primary => true # This is where Rails migrations will run
after "deploy:update", "deploy:cleanup" 

当我尝试刷新我的网页时,我得到了这个:

Errno::ENOENT

No such file or directory - /home/user/mydomain.com/releases/20120321181235/config/locales/devise.en.yml

版本20120321181235不存在,这是一个旧版本。我希望将新版本与我的文件中的更改一起使用。

我该怎么做?

谢谢

0 个答案:

没有答案