Ryan Wilcox
2011-Jul-23 21:18 UTC
[OSS] [ANN] / [Request for Help] Rails one step installing for *nix
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. 8 steps to get a *simple* Rails project up on a machine. The steps are: 1. Install RVM 2. Complile a Ruby using RVM 3. rvm use (compiled ruby) 4. rvm gemset create NAME 5. echo "rvm use (gemset name)@(compiled ruby) > .rvmrc 6. active the gemset you created 7. gem install bundler 8. 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 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: 1. rvm use (compiled Ruby) 2. rvm gemset create NAME 3. echo "rvm use (gemset name)@(compiled ruby) > .rvmrc 4. activate that gemset 5. gem install bundler 6. bundle install Why are you doing all these steps when you can use the one step rails installer to do them for you? Help me help you!! Looking forward to seeing folks on the Github! _Ryan Wilcox -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Conrad Taylor
2011-Jul-23 22:40 UTC
Re: [OSS] [ANN] / [Request for Help] Rails one step installing for *nix
On Sat, Jul 23, 2011 at 2:18 PM, Ryan Wilcox <ryanwilcox-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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. > > 8 steps to get a *simple* Rails project up on a machine. > > The steps are: > > 1. Install RVM > 2. Complile a Ruby using RVM > 3. rvm use (compiled ruby) > 4. rvm gemset create NAME > 5. echo "rvm use (gemset name)@(compiled ruby) > .rvmrc > 6. active the gemset you created > 7. gem install bundler > 8. 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 > > 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: > > 1. rvm use (compiled Ruby) > 2. rvm gemset create NAME > 3. echo "rvm use (gemset name)@(compiled ruby) > .rvmrc > 4. activate that gemset > 5. gem install bundler > 6. 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> Why are you doing all these steps when you can use the one step rails > installer to do them for you?> Help me help you!! > > Looking forward to seeing folks on the Github! > _Ryan Wilcox > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ryan Wilcox
2011-Jul-24 02:14 UTC
Re: [OSS] [ANN] / [Request for Help] Rails one step installing for *nix
On Jul 23, 6:40 pm, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.If you''re using bundler''s built in handling of this, yes the 8 steps go down to 2 (sudo gem install bundler; bundle install). I think the gemset approach is actually a better approach to what bundler does. (No, I''m not really sure I can justify this, beyond "You might have some gems you don''t put in the Gemfile for whatever reason, that you want to be isolated from your system gems") Hope this helps, _Ryan Wilcox -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.