3 posts tagged “rails”
Sometimes you get this damn annoying message from mongrel, and scouring the source code (which worked last time you tried) turns out nothing:
The error message makes no sense at all. Somewhere in my code, i need to require 'ldap', seeing as I use that for authentication. I recently reinstalled my system, and sure enough, libldap-ruby1.8 isn't installed... installing it makes everything work again.** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
/var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:15: warning: already initialized constant OPTIONS
/var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:18: undefined method `options' for []:Array (NoMethodError)
In conclusion, check all your requires and make sure you've got them all installed. Test requiring them in irb to ensure that Ruby can see them. If not, maybe it's a stranger bug.
Dreamhost is nice enough not to have bzr on their servers. I'm installing it in my home directory as I speak. This is so I can actually update the live branch. Thingy. And it's installed now, whee.
Edit: and I think I'm just starting to get how it works, maybe.
Re-edit: haha, scratch that! It turns out that Capistrano is a bit silly at the moment though, as it makes a full branch for every release. Waay too much -- we're not even editing them!
So, tonight I have been cracking down on project roflcopter hardcore. This is how it went down:
- I fixed the stupid way I'd implemented the betternestedset plugin, it's now nice.
- I finished the "Organise" page. You can now reorder the site as per will. It is buggy, though - not in a "crash and take all your work" way, but a "you'll move a page here and suddenly half of the site is in a submenu" way. I also found that the menu system accidentally (or perhaps, just by great design! :)) supports sublevels to any degree.
- Cleaned up everything.
- Installed the tools necessary for Capistrano deployments at school, a Mongrel-based approach with Apache.
- Set up a repository for the bzr branch for roflcopter. (not that it requires much doing)
I am now deploying my way to victory on inproxy. Here's how the work situation was at some point in time:
Actually the deployment just failed, but that's because I didn't install a gem! :) Here's to getting it done, installed and in place! by the time I need to leave.
