Rails isn't frozen in Lovd by Less
Leads to lovely errors when you have the wrong version of rails installed and your host's OOMKiller snipes gem every time you try to update, even to a frozen directory. Please freeze rails.
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company marked this problem solved.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hi Thomas,
Sorry you had a bit of trouble. Did you try freezing rails yourself? That should do the trick.
steve -
Inappropriate?Can you freeze rails cross platform? I'm new to rails (and made this thread because of this thread) Also, do you plan to follow their guidelines?
If thou bless thee world with an application of open source, thou must ship it with the version of Rails that thou knowest it to work with in vendor/rails.
-
Inappropriate?Rails is platform independent. So gem/frozen rails are the same.
I don't agree with that. There are a lot of people who use gem rails and they don't want it frozen. It's so easy to freeze that I think it's better unfrozen.
steve -
Inappropriate?I tried freezing rails myself based on google results. Oddly, the most helpful was this terse post, while the higher results for [freeze rails] were more wordy and confusing than helpful.
So.
[dalitz]$ rake rails:freeze:edge TAG=rel_2-1-0
(in /mnt/local/home/REDACTED/lovd)
cd vendor
Downloading Rails from http://dev.rubyonrails.org/archives/r...
Unpacking Rails
rm -rf rails
rm -f rails.zip
rm -f rails/Rakefile
rm -f rails/cleanlogs.sh
rm -f rails/pushgems.rb
rm -f rails/release.rb
cd -
Updating current scripts, javascripts, and configuration settings
[dalitz]$ ls
app config doc LICENSE lovdbyless public README test
CHANGELOG db lib log lovdbyless.zip Rakefile script vendor
[dalitz]$
Trying the instructions in this DreamHost specific comment (commenting out <tt>ActiveRecord::Base.establish_connection</tt>, I get absolutely no change in the errors.
Here is a lovely webkit2png image.

Also, one could easily argue that it's so easy to unfreeze, that it's better frozen.
(P.S., time to go through the README file, because I am totally sure I did something wrong, but hey, maybe this could sometime serve as a guide for future Dreamhost lusers?) -
Inappropriate?If you read the error message carefully you will see that you don't have a database.yml file. Freezing rails will not solve this problem. Nor would unfreezing rails.
-
Yeah, I noticed that, that's why I said I was sure I messed up. That's what I get for trying at 5 am. I'll work on it more later. -
Inappropriate?Is there perhaps a way to upgrade my gems straight to the frozen directory?
[dalitz]$ rake lovdbyless:getting_started
(in /mnt/local/home/REDACTED/lovd)
Missing these required gems:
gcnovus-avatar = 0.0.7
You're running:
ruby 1.8.5 at /usr/bin/ruby1.8
rubygems 1.1.1 at /usr/lib/ruby/gems/1.8
Run `rake gems:install` to install the missing gems.
[dalitz]$ rake gems:install
(in /mnt/local/home/REDACTED/lovd)
rake aborted!
no such file to load -- avatar/view/action_view_support
(See full trace by running task with --trace)
(fyi, the full trace shows it's using frozen rails) -
Inappropriate?You'll have to upgrade to gems 1.2.0 I think.
-
Is there a way to do that or am I at the whim of Dreamhost, a company that loathes upgrading? -
Inappropriate?I'm not a fan of dreamhost. I think you're at their whim.
-
Inappropriate?Looks like you're missing a gem. Try this:
1. sudo gem update --system
2. gem sources -a http://gems.github.com
3. gem install gcnovus-avatar --version "= 0.0.7"
I’m helpful
-
[dalitz]$ sudo gem update --system
Password:
(myaccount) is not in the sudoers file. This incident will be reported.
THANKS NOW I'LL BE REPORTED. I'LL BE SWINGING BY DAWN! -
lol, i've never used dreamhost, i'm not sure what privileges you have. try installing that missing avatar gem if you can, or ask them too. looks like that is your only problem. -
Yeah, they're not going to do that. They won't even install beautifulsoup for python. You have to post a "suggestion" and if enough people vote for it, they consider it. The beautiful soup one is 3 years old. -
Also, do you know of any shared hosts that let you sudo? I have never heard of such a thing. -
no, sorry, i've never used any shared rails hosts. seems like they should install an avatar gem, but who knows. btw as an alternative to soup, have you looked at hpricot? it may suit your needs. -
Was only interested in beautifulsoup because someone wrote a nice script that used it, I don't code python. -
Inappropriate?Welp,
I looked into gems on rails and was able to freeze gcnovus-avatar. Don't know if I can post that to DH though, because I had to do a gems update to get it. Maybe that's the point, though? There's also freeze all your ruby gems on a shared host and the newer Vendor Everything (site's down, linked go Google Cache) which seems interesting.
I know it's not like you're actually making money from Lovd, but if you'd consider making a frozen copy as well (since it's so easy to unfreeze, you can freeze, zip, unfreeze. even script it) for those on shared hosting, I think it'd be appreciated. At least, it'd give me a way to better tell people not to use Ning. -
Inappropriate?Thomas,
You can make your own frozen version on your laptop and then upload that to dreamhost. -
I'd love to, does Dreamhost have to have have gems on rails installed or does the frozen gem work without it? -
Inappropriate?Regardless of host, using frozen rails means that gem rails is not used.
-
I was talking about freezing "gcnovus-avatar", not "gem rails". But I see what I should have seen before: you can freeze any gem.
Loading Profile...



EMPLOYEE
