How to freeze a rake?

I have a rails application (2.3.2) that I need to install on a server on which rake is not installed, and on which I do not have privileges to install gems, so I would like to freeze the rail pearl.

However, I cannot figure out how to do this. I put it in the dependencies in environment.rb, but "rake gems: unpack GEM = rake" has no effect. The "rake rake" says that the rake is a frame stone, not a frozen gem.

How can I make sure rake appears in my "supplier / gem", and how can I say that capistrano uses this version of rake?

+3
source share
3 answers

Freezing the gem itself is quite simple - if the Maran solution doesn't work for you, you can create the actual gem repository in your vendor's directory and then do it gem install rake --install-dir /rails_dir/vendor/gems.

Harder to say is Capistrano, which rake to use. Can you post a little more details on what you want to do with rake and Capistrano?

+1
source

Is this what you want:

set :rake, "/path/to/rake"
+1
source

Perhaps this can help you?

http://gemsonrails.rubyforge.org/

0
source

Source: https://habr.com/ru/post/1706060/


All Articles