Getting a New App Running on Edge
Posted by wycats January 01, 2010 @ 03:03 AM
(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.
The Steps
Step 1: Install bundler (version 0.8.1 required)
$ sudo gem install bundler
Step 2: Check out Rails
$ git clone git://github.com/rails/rails.git $ cd rails
Step 3: Bundle Rails dependencies
$ gem bundle --only default
Step 4: Generate a new app
$ ruby railties/bin/rails ../new_app --dev $ cd ../new_app
Done
Everything should now work: script/server, script/console, etc.
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.
Enjoy!
Updated on 01/15/2010 – Rewrote steps to include gem install bundler and use rails APP_NAME --dev.

Nice – but cant wait until your done with 3.0 ;O)
Nice – but cant wait until your done with 3.0 ;O)
The line
directory “/path/to/rails”, :glob => “{/,}.gemspec”
isn’t needed when you run the ‘rails’ command with –dev flag (a recent addition which has been very helpful). It will point to the checkout of Rails you ran the rails command from. example:
ruby rails/railties/bin/rails new_app –dev
I created a ruby script that updates the checkout of rails, automatically sets up an app, with switches to additionally populate it with a post/comment scaffolding, remove public/index.html, make the root url posts#index, and turn on script/server once finished.
I’ve found it very helpful for testing Rails 3. You can find it at http://gist.github.com/225330
Using that script, a great way to get started would be to run:
./generate_rails_app.rb testapp –with-data –start-server
Yehuda, trust me try http://lipsiadmin.com
A true admin
Lipsiadmin is buggy && very inconvenient to end user. Good idea, bad implementation.
buggy?
On github there are the issue tracking. Send me all your “issues”.
Im very very curious.
Thanks
buggy?
On github there are the issue tracking. Send me all your “issues”.
Im very very curious.
Thanks
Why not remove all script/* stuff and just use rails executable like in Merb?
If you agree with me, vote here http://rails.uservoice.com/pages/10012-rails/suggestions/295940-replace-script-by-rails-gen
We are pleased to announce NewAppIdea.com(http://www.newappidea.com).NewAppIdea.com is simply a meeting place where people with new app ideas can connect with expert app developers.
After reading article-upon-article about people turning their app ideas into app store success stories, we became frustrated with our inability to find a developer to turn our own app ideas into a reality. We also sensed that we were not the only people out there with great ideas and searching for app developers. From that experience NewAppIdea.com was born.
There os no cost for those with app ideas or app developers to become members of the NewAppIdea.com community. Users simply post their app ideas on NewAppIdea.com, app developers bid on the opportunity to develop those ideas, and users can pick and choose which developer they want to work to create their apps.
We welcome you to visit and comment about our site.
The NewAppIdea.com Team New App Idea | App Idea Development