El Dorado

A full-stack community web application written in Ruby/Rails
943 Posts
 
Fri, 05 Mar 2010, 04:34pm Are you using El Dorado? Add your site to the wiki! »
Trevor
Administrator
Costco2
Registered: September 2005
Last visit: 16 hours ago
Posts: 370

Are you using El Dorado? Add your site to the wiki!

http://wiki.github.com/trevorturk/eldorado/

You'll need a GitHub account. If you're too lazy for that, drop me a note here or on Twitter @trevorturk and I'll add it myself.

Offline
Fri, 05 Mar 2010, 04:32pm Event Date thinks today is tomorrow »
Trevor
Administrator
Costco2
Registered: September 2005
Last visit: 16 hours ago
Posts: 370

Did you check your /admin settings for the timezone, as well as the user your logged in as time zone? I think it should work right, but it could get confusing if the app thinks your in a time zone that you're not.

Offline
Thu, 04 Mar 2010, 06:59am production deployment »
aerende
Member
Registered: February 2010
Last visit: Thu, 04 Mar 2010
Posts: 10

It turned out the problem was in using dispatch.fcgi on Dreamhost. Once I switched to using Passenger everything worked fine! Bundler wasn't the problem. Thanks for your help!!

Offline
Wed, 03 Mar 2010, 06:33pm Event Date thinks today is tomorrow »
thedateman
New member
Registered: March 2010
Last visit: Wed, 03 Mar 2010
Posts: 3

Well, it looks like we have another chance to test it.

I'm looking at your event page right now, and it is 4:31PM PST mar 3, and the events page says under thursday mar 4: "TODAY"

It's weird, it was right earlier, and now it's wrong again.

I hope you get a chance to check this out, because it's wacky, and I'm not good enough to figure it out.

Offline
Wed, 03 Mar 2010, 02:34pm `gem_original_require': no such file to load -- bundler (LoadError) »
Trevor
Administrator
Costco2
Registered: September 2005
Last visit: 16 hours ago
Posts: 370

I replied to this in the other thread: http://eldorado.heroku.com/topics/380?page=1#p1196

Offline
Wed, 03 Mar 2010, 02:33pm production deployment »
Trevor
Administrator
Costco2
Registered: September 2005
Last visit: 16 hours ago
Posts: 370

It sounds like you're missing the "bundler" gem on the production server. Honestly, the state of bundler is really not good right now. I might have to pull it out of the project for the time being. Still, you should be able to get things working if you install bundler on the production server.

Offline
Wed, 03 Mar 2010, 02:32pm Event Date thinks today is tomorrow »
Trevor
Administrator
Costco2
Registered: September 2005
Last visit: 16 hours ago
Posts: 370

Hmm... that might have been it. Did you check your /admin timezone? I think there's an overall timezone, and a per-user timezone, so that might also have something to do with it. Anyway, let me know if you figure out what happened.

Offline
Tue, 02 Mar 2010, 11:58pm `gem_original_require': no such file to load -- bundler (LoadError) »
aerende
Member
Registered: February 2010
Last visit: Thu, 04 Mar 2010
Posts: 10

When I run dispatch.fcgi on Dreamhost I get the following error. The bundler gem is installed. Any ideas what could be causing this problem?

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- bundler (LoadError)
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'

Offline
Tue, 02 Mar 2010, 11:56pm production deployment »
aerende
Member
Registered: February 2010
Last visit: Thu, 04 Mar 2010
Posts: 10

When I run dispatch.fcgi on Dreamhost I get the following error. Any ideas what could be causing it? I have the bundler gem installed.

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- bundler (LoadError)
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'

Offline
Tue, 02 Mar 2010, 05:05pm Event Date thinks today is tomorrow »
thedateman
New member
Registered: March 2010
Last visit: Wed, 03 Mar 2010
Posts: 3

Ok, well, today both yours and my events pages are fixed, so I guess it's a non-issue, just a curiosity.

Offline
Mon, 01 Mar 2010, 08:46pm Event Date thinks today is tomorrow »
thedateman
New member
Registered: March 2010
Last visit: Wed, 03 Mar 2010
Posts: 3

Somebody just pointed out to me that my events page thinks it's tuesday (it's currently 7pm PST monday mar 1) - and it does.

When I click "now"for making an event, it knows the correct date, so I came to see if your event page was doing the same thing - or if I had just broken something.

But it's happening on your event page too, figure it must be related to feb having 28 days. Any suggestions? Will it fix itself?

Offline
Sun, 28 Feb 2010, 02:33pm production deployment »
aerende
Member
Registered: February 2010
Last visit: Thu, 04 Mar 2010
Posts: 10

Figured it out. Ran 'bundle package' on my dev machine. This created the gems in vendor/cache. Copied these gems and Gemfile and Gemfile.lock onto my production machine and then ran 'bundle install vendor/bundler_gems' on my production machine.

Thanks!

Offline
Sat, 27 Feb 2010, 09:43am production deployment »
aerende
Member
Registered: February 2010
Last visit: Thu, 04 Mar 2010
Posts: 10

I've been trying to install the gems myself, instead of using bundler, but when I call dispatch.fcgi it calls /config/preinitializer.rb: which calls bundler and bundler can't find the gem right_aws which I've installed. What do I need to remove from the code so that bundler isn't called and I can run dispatch.fcgi. Here's what I get now:

$ gem list -l | grep right_aws
right_aws (1.10.0)

$ ./dispatch.fcgi
/home/aerende/.gem/gems/bundler-0.9.9/lib/bundler/resolver.rb:163:in `resolve': Could not find gem 'right_aws (= 1.9.0, runtime)' in any of the sources. (Bundler::GemNotFound)
from /home/aerende/.gem/gems/bundler-0.9.9/lib/bundler/resolver.rb:40:in `resolve'
from /home/aerende/.gem/gems/bundler-0.9.9/lib/bundler/resolver.rb:39:in `catch'
from /home/aerende/.gem/gems/bundler-0.9.9/lib/bundler/resolver.rb:39:in `resolve'
from /home/aerende/.gem/gems/bundler-0.9.9/lib/bundler/runtime.rb:93:in `specs'
from /home/aerende/.gem/gems/bundler-0.9.9/lib/bundler/runtime.rb:82:in `specs_for'
from /home/aerende/.gem/gems/bundler-0.9.9/lib/bundler/runtime.rb:18:in `setup'
from /home/aerende/.gem/gems/bundler-0.9.9/lib/bundler.rb:66:in `setup'
from ./config/../config/preinitializer.rb:9

Offline
Thu, 25 Feb 2010, 08:54pm production deployment »
aerende
Member
Registered: February 2010
Last visit: Thu, 04 Mar 2010
Posts: 10

Having the problem in deployment that config/preinitializer.rb is looking for

.bundle/environment

but that file doesn't exist. So the deployment eldorado is taking rails from the wrong place.

Can you point me to an example of what .bundle/environment should look like?

Offline
Thu, 25 Feb 2010, 02:54pm production deployment »
Trevor
Administrator
Costco2
Registered: September 2005
Last visit: 16 hours ago
Posts: 370

Yeah, I use Slicehost as well. You might want to check out this article:

http://almosteffortless.com/2009/06/24/install-...

...and note that there's a config/deploy.example.rb or some such file in the project. That should be a good start for setting up your own deployment to Slicehost. It's relatively straightforward. Apologies in advance if you have problems with Bundler. You may want to consider installing the gems you need on Slicehost manually and leaving out the bundler/capistrano stuff because it's not working too well right now.

Offline