Welcome Guest | Login

Gem freeze error

I've followed all of the steps here:http://www.hostingrails.com/forums/wiki_thread/2

I've installed and unpacked rails 1.2.6 to my vendor folder (along with all dependencies and some other gems)

I get error:
blokrok@purvey [~/blokrok]$ rake rails:freeze:gems
(in /home/blokrok/blokrok)
Missing the Rails 1.2.6 gem. Please `gem install -v=1.2.6 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

Why can't it find rails 1.2.6?  Doesn't it look in the vendor folder?

blokrok@purvey [~/blokrok]$ ls vendor/
actionmailer-1.3.6      activerecord-1.15.6  plugins      uuid-1.0.4
actionpack-1.13.6       activesupport-1.4.4  rails-1.2.6
actionwebservice-1.2.6  daemons-1.0.9        rake-0.8.1

I've also tried logging out, and then back in, and I get the same missing gem error.

2008-01-22 11:45 PM

Can you try this command and see if the freezing is successful or not.

blokrok@purvey [~/blokrok]$ rake rails:freeze:edge TAG=rel_1-2-6

2008-01-23 12:08 AM

Regards,
Rahul
blokrok@purvey [~/blokrok]$ rake rails:freeze:edge TAG=rel_1-2-6
(in /home/blokrok/blokrok)
Missing the Rails 1.2.6 gem. Please `gem install -v=1.2.6 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

BTW, here are the first few lines from environment.rb, if that helps:
# Be sure to restart your web server when you modify this file.

# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '1.2.6' unless defined? RAILS_GEM_VERSION

2008-01-23 08:03 AM

The Rails gem is now installed. Please try freezing again.
Also please try freezing it using the command below.

rake rails:freeze:edge TAG=rel_X-X-X

e.g. rake rails:freeze:edge TAG=rel_1-2-5

2008-01-23 08:44 AM

Ok, that ran, until it said:
"svn: URL http://dev.rubyonrails.org/svn/rails/tags/rel_1-2-6/activeresource' doesn't exist"

Also, I still don't know how to freeze the gems in my vendor folder.

blokrok@purvey [~/blokrok]$ rake rails:freeze:gems
(in /home/blokrok/blokrok)
Freezing to the gems for Rails 2.0.2
rake aborted!
uninitialized constant Gem::GemRunner

2008-01-23 08:53 AM

Ok - I went ahead and frozen rails 1.2.6 into your app. You can see the rails directory under vendor folder. Please check this now.

2008-01-23 09:52 AM

Excellent.  Did you freeze the other gems?

2008-01-23 10:01 AM

I've frozen Rails to your app. If you have unpacked other gems to the vendor folder using the steps below, that's it - You're essentially telling the Rails application to permanently run on these gems unless you delete them from the vendor folder.  
To unpack/freeze gems to the vendor folder just:

[~]# cd vendor
[~/vendor]# gem unpack gem_name
[~/vendor]# gem unpack another_gem_name

2008-01-23 11:03 AM

How did you accomplish this, so I can do it in the future?

2008-01-23 11:17 AM

I just took a back up of already frozen rails directory under vendor and used the command below.

rake rails:freeze:edge TAG=rel_1-2-6

2008-01-23 11:45 AM

I don't think it's working.  If you go here, you can see that the method "require_gem" is undefined, which it shouldn't be in rails 1.2.6.  It's all running fine on my local copy.
http://www.blokrok.com/users/new

2008-01-23 12:09 PM

Hi - Please post a ticket to the support team- we will help you with this. And please do not post your domain name and other details in the Forum - Thank you

2008-01-23 12:29 PM

HostingRails Support

Hello Guest! In order to post you must be an active client with us, please log in or sign up.