4 posts tagged “ruby on rails”
After installing Rails (Edge) on OS X, I started getting various errors about 'sqlite3'. So, I decided to do a little research.
It turns out that SQLite3 is the new default (development) database for Rails and is also pre-installed on OS X (>Tiger).
When I tried to install the Ruby bindings, I received:
I found a post that described a fix:
sudo apt-get install sqlite3 libsqlite3-dev
sudo gem install sqlite3-ruby
Of course, this means I have to install apt-get, except that on OS X we use MacPorts.
I don't need sqlite3, so can exclude it.
Well, that didn't work. Apparently, there is no such thing as "libsqlite3-dev" through ports.
I found another post that suggests getting the SQLite3 source code.
Installing Rails is supposed to be easy. (This isn't in the instructions of the video, but I assume I need to actually install Rails at some point!)
sudo gem install rails --include-dependencies --no-rdoc
(I used '--no-rdoc' proactively.)
Successfully installed activesupport-2.0.2
Successfully installed activerecord-2.0.2
Successfully installed actionpack-2.0.2
Successfully installed actionmailer-2.0.2
Successfully installed activeresource-2.0.2
Successfully installed rails-2.0.2
6 gems installed
Installing ri documentation for activesupport-2.0.2...
Installing ri documentation for activerecord-2.0.2...
Installing ri documentation for actionpack-2.0.2...
Installing ri documentation for actionmailer-2.0.2...
Installing ri documentation for activeresource-2.0.2...
Despite the '--no-rdoc', it seems to have installed the documentation. Oh well, no errors.
Ah, but I am running Ruby 1.9 which is not compatible with Rails 2.0.2. Ugh.
Using the latest Rails, Rails worked! (Welcome to life on the Edge.)
As I started to research this topic, there are several Slicehost tutorials on setting up various configurations. But there is a Slicehost blog entry that references the deprec stuff mentioned earlier.
Mongrel is apparently the darling of the Rails community. According to its homepage:
But I keep reading about how to configure other web servers (Apache, Lighttpd, Nginx) as reverse proxies for Mongrel.
Mongrel is a fast HTTP library and server for Ruby that is intended for hosting Ruby web applications of any kind using plain HTTP rather than FastCGI or SCGI.
Installing Rails on a fresh Ubuntu Gutsy (non-Slicehost specific) install is described here.
I had cause today to look into Rails VPS hosting services. I came across the Nuby on Rails article with a ton of comments which serve to validate and clarify various points. More searching turned up similar reviews. There is even a Rails-specific hosting info site.
Slicehost appears to be the best choice for my needs (a small, mainly static Rails app). The minimum plan is $20/mo for 256MB RAM, 10GB space, 100GB bandwidth. This is all way more than I actually need.
I'm trying to understand the hosting options before I get going on my development effort. I'd like for my dev setup to be as close as possible to my deployed/hosted setup. I'll be using VMWare on my MacBook Pro for this purpose. (I'm not going to be fussing with IronRuby for this project.)