English 中文(简体)
处理自动电梯和电梯问题,使用电压/多压和电动0.9.2.2 相对于部署服务器的0.9.2
原标题:issue with capistrano and rake using ext/multistage and rake 0.9.2.2 vs 0.9.2 on the deployed server

我希望在服务器上形成一种循环环境。 我非常好地利用了强食堂进行部署。

我对展期/多阶段延长作了改动,但正出现以下错误:

# Add RVM s lib directory to the load path.
  * executing "cd /data/sites/staging.domain.com/apps/app/releases/20120501225426 && rake RAILS_ENV=production  db:migrate"
    servers: ["173.111.158.135"]
    [173.111.158.135] executing command
*** [err :: 173.111.158.135] rake aborted!
*** [err :: 173.111.158.135] Could not find rake-0.9.2.2 in any of the sources
*** [err :: 173.111.158.135] 
*** [err :: 173.111.158.135] (See full trace by running task with --trace)
*** [err :: 173.111.158.135] 
    command finished in 1332ms
failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell  1.9.2  -c  cd /data/sites/staging.domain.com/apps/app/releases/20120501225426 && rake RAILS_ENV=production  db:migrate " on 173.111.158.135

在我的格文稿中,我有:

gem  rake ,  0.9.2.2 

在我的当地机器上,我得到:

Tue May 01$ rake -V
rake, version 0.9.2.2
Tue May 01$

在服务器上,我:

#rake -V
rake, version 0.9.2

#rake
Could not find rake-0.9.2.2 in any of the sources
Run `bundle install` to install missing gems.

如果是:

# which ruby
/usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby
# which rake
/usr/local/rvm/gems/ruby-1.9.2-p290/bin/rake
# /usr/local/rvm/gems/ruby-1.9.2-p290/bin/rake -V
rake, version 0.9.2

上限差错似乎是一种微小的加密。 谁能帮助我说明这一点? 如果我具体说明了0.9.2.2,而且只有9.2份,那么我的其他封面为什么会发挥作用? 我是否有必要强迫独角兽部队安装 r0.9.2.2,我目前还没有这样做,我如何这样做?

thx

最佳回答

这种错误通常出现在你忘记<条码>,例如,有色外出铁路。 独角兽部队是否要求/放弃安装这些宝宝石的支部?

EDIT: Yeah I bet your project isn t expecting this: rake RAILS_ENV=production db:migrate but maybe bundle exec rake RAILS_ENV=production db:migrate.

I m unsure how you setup your cap however.

这是一项铁路3项目。

问题回答

暂无回答




相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签