Hello everyone,
Quick, off the top of your head, how many steps does it take to get a
fresh machine running a Rails project, with best practices from the
community?
…I’ll let you think…
…Got it?..
8 steps to get a simple Rails project up on a machine.
The steps are:
-
Install RVM
-
Complile a Ruby using RVM
-
rvm use (compiled ruby)
-
rvm gemset create NAME
-
echo "rvm use (gemset name)@(compiled ruby) > .rvmrc
-
active the gemset you created
-
gem install bundler
-
bundle install
(And this is after installing Git and developer tools).
Want to help me fix this problem?
==========================
The project is at:
[https://github.com/rwilcox/one_step_rails_install](https://github.com/rwilcox/one_step_rails_install)
Right now it will check for developer tools, RVM, and install Ruby
1.8.7 and Ruby 1.9.2 if you don’t have them already.
Why should I help?
========================
Think of the SIX STEP you need to do everytime you put a new Rails
project on your machine:
-
rvm use (compiled Ruby)
-
rvm gemset create NAME
-
echo "rvm use (gemset name)@(compiled ruby) > .rvmrc
-
activate that gemset
-
gem install bundler
-
bundle install
Hi, this seems like a good idea but after you create your first application,
any additional install will just require step (6). Furthermore, I tend to use Gemfile
over gemsets to manage the gems of a Rails project. Just a few things to
consider in your development of this project. In summary, this seems like a
better idea for a first install of a Rails environment. Rails also support the
notion of application templates by using -m option and you can learn mnore
about it here:
http://railscasts.com/episodes/148-app-templates-in-rails-2-3
Good luck,
-Conrad