Skip to content

Instantly share code, notes, and snippets.

@craigmartin
Created August 15, 2012 00:05
Show Gist options
  • Save craigmartin/3354099 to your computer and use it in GitHub Desktop.
Save craigmartin/3354099 to your computer and use it in GitHub Desktop.
My notes on Rails 2.3 to 3.2 upgrades - with client specific notes
List of steps I take to upgrade an app from Rails 2.3 to 3.2 (generically speaking with many assumptions)
Step 1 - Add Bundler and a Gemfile to existing Rails 2.3 application.
- by-product = clean up gems being used.
Step 2 -
Step 1 fine-tuned for client (internal):
Make sure your rails app dir has group write permissions (so 'dev' user can write Gemfile.lock file)
1. sudo to 'dev' and go to your rails app dir (i.e. /srv/dev/[yourusername]-dev.###.com)
1. Uninstall all existing gems.
* Here's a quick way to uninstall all gems. -note by craig, to one-liner
* `$ gem list | cut -d" " -f1 | xargs gem uninstall -aIx`
1. Install bundler and run it to install gems in the Gemfile
* `$ gem install bundler`
* `$ bundle`
1. Build passenger:
* `$ passenger-install-apache2-module`
1. Restart apache:
* `$ sudo service httpd restart`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment