Tuesday, November 2, 2010

At a Glance To-do List for Running Rails 2 and Rails 3 on the Same Linux Server

This is geeky. You've been warned.

Environment: Rails 2.3.5 app - redmine,our internal project management tool, in our case - running on Ubuntu 10.04.
Requirement: Install a Rails 3 app - our new corp web site in this case. Goodbye, Wordpress, hello home-grown RoR happiness.

Note: this will down your rails 2.3.5 app briefly.

  1. Make sure your core libs are up to date:
    1.  apt-get install libyaml-ruby
    2.  apt-get install libzlib-ruby
  2. Update rubygems. Ubuntu won't let you using "gem install rubygems", so do this instead:
    1. gem install rubygems-update
    2. rubygems-update
  3. Install bundler
    1. gem install bundler
  4. Install Rails 3. This will take a few minutes.
    1. gem install rails
  5. Go to your Rails 3 app directory and run:
    1. bundle install
  6. Reload apache (optional)
    1. /etc/init.d/apache2 reload OR service apache2 reload
  7. Your old Rails 2 app will now be down and your new Rails 3 app is running. Now we reinstall Rails 2. Bundler lets these coexist peacefully:
    1. gem install rails -v=2.3.5
  8. Reload apache. 
    1. /etc/init.d/apache2 reload OR service apache2 reload
Check your work by accessing both of your applications. Voila!

18 comments:

  1. Really its very good post.knowledge sharing is the optimum result of knowledge gaining.

    ReplyDelete
  2. Super Duper posting, whenever I come across a blog that really has some excellent unique content I always want to say thank you, there are so many blogs nowadays that are full of copied content.

    ReplyDelete
  3. Thanks, I’m glad you found it helpful…and I hope your sales force does as well!
    -------
    Nancy
    Payroll Solutions

    ReplyDelete
  4. I always want to say thank you, there are so many blogs nowadays that are full of copied content.website designers southampton

    ReplyDelete
  5. I always want to say thank you, there are so many blogs nowadays that are full of copied content. There are so many blogs nowadays that are full of copied content.
    seo melbourne

    ReplyDelete
  6. You are saying about interesting things. Thanks you for great post. Sometimes it needs to be smart in investing, planning, so use homeowners insurance company ratings or you may combine another type of auto protection and nationwide auto insurance.

    ReplyDelete
  7. Pretty impressed by the variety of attentiveness on this website. You have a ton of amazing information here. I am sure I will check out this blog another time.
    Write My Essay

    ReplyDelete
  8. Your post have the information that is helpful and very informative. I would like you to keep up the good work.

    Business Logo Design

    ReplyDelete
  9. This story is very inspirational for some people & me also. Your blog notes is attractive. So I read always your blog story. Please submit post like this. I am impressed ones again from your blog story

    Delhi Escorts
    Delhi Female Escorts

    ReplyDelete
  10. Thank you for sharing with us. Turn your attention on homeowners insurance companies provided by top home insurers.

    ReplyDelete
  11. Well you're right. It IS geeky ;p

    =- try bidet spray

    ReplyDelete
  12. Thanks for the info. Full descriptive info with step by step.

    ReplyDelete
  13. Great post, I enjoyed ready reading it.research paper writing

    ReplyDelete
  14. Thank you,
    The given information is very effective.
    I’ll keep updated with it.

    Booking India Luxury Trains

    ReplyDelete
  15. Thank you,
    The given information is very effective.
    I’ll keep updated with it.

    Booking India Luxury Trains

    ReplyDelete
  16. Thank you,
    The given information is very effective.
    I'l keep update with the same.

    furniture trader

    ReplyDelete
  17. Thank you,
    The given information is very effective.
    I'l keep update with the same.

    furniture trader

    ReplyDelete