Skip to content

Upgrading a BrowserCMS project

peakpg edited this page Mar 14, 2012 · 33 revisions

Prerequisites

  1. This guide assumes you are upgrading a BrowserCMS project to 3.4.x from 3.3.x.
  2. See below for a list of instructions for older versions.
  3. It assumes the project is currently running on Rails 3.0 and will be updated to Rails 3.1 as part of this process.
  4. The project being managed using Git (or other SCM)

Instructions

1. Install the new BrowserCMS Gem

Ensure you have the correct version:

$ bcms -v

Should return BrowserCMS 3.4.0 or some other 3.4.x version.

3. Run upgrade script

In your project, run the following script from the command line:

$ bcms-upgrade project

This will update the project to use the new version of the gem, add new migrations and seed data as needed. You will then need to run the following commands:

$ rake rails:update 

Hit a when prompted to overwrite ALL files Then do the following:

  1. Review the following files and ensure the specified lines appear (use Git to selectively discard the changes):
config/environment/development.rb => Should contain:
  SITE_DOMAIN=localhost:3000
config/environment/production.rb
  SITE_DOMAIN=http://your-site-domain.com
  config.action_controller.page_cache_directory = File.join(Rails.root, 'public', 'cache')
  config.action_mailer.smtp_settings = {:address => 'mail.yourmailserver.com', :domain => "#{SITE_DOMAIN}"}
config/environment/test.rb
  SITE_DOMAIN=localhost:3000
  1. Run git checkout config/routes.rb to revert this file
  2. Run rake db:migrate to migrate the database

Instructions for Older Versions

If you need instructions for how to upgrade earlier versions of BrowserCMS, see the following list:

Troubleshooting

Clone this wiki locally