(cross-posted from Yehuda’s Blog)
So people have been attempting to get a Rails app up and running recently. I also have some apps in development on Rails 3, so I’ve been experiencing some of the same problems many others have.
The other night, I worked with sferik to start porting merb-admin over to Rails. Because this process involved being on edge Rails, we got the process honed to a very simple, small, repeatable process.
$ sudo gem install bundler
$ git clone git://github.com/rails/rails.git $ cd rails
$ gem bundle --only default
$ ruby railties/bin/rails ../new_app --dev $ cd ../new_app
Everything should now work:
When you execute
rails APP_NAME --dev, it will create a new Rails application with a Gemfile pointing to your Rails checkout and bundle it right after.
Also notice that in Step 3 we pass
--only default to the bundle command. This will skip bundling of both mysql and pg (for postgresql) gems.
Updated on 01/15/2010 – Rewrote steps to include
gem install bundler and use
rails APP_NAME --dev.