Updating+pre-gem

  1. Back up your database and uploaded files!
  2. Enter your wagn root directory
    By default this is named "wagn".  It should have directories named "app", "config", "lib", etc.
  3. Update your source
    If you're using git, then go into the wagn directory and type:
    git pull  # if that doesn't work try `git pull git://github.com/wagn/wagn.git master`
  4. Update your libraries
    bundle install

    For more info see using bundler with wagn.

  5. Clear your cache
    rake wagn:reset_cache # if using file caching, we recommend a manual delete of everything in tmp/cache
    
  6. Migrate your database
    rake wagn:migrate  # as with all rake commands, you can try prefacing with "bundle exec" if you encounter gem problems.

    You may encounter issues if your wagn is badly out of date.  If so, we recommend that you do incremental upgrades by updating to each major release.  For example, if you encounter issues migrating from 1.5.4 to 1.8.1, try updating first to 1.6, then to 1.7, then to 1.8.1.  To migrate to versions older than 1.11, you will need to use "rake db:migrate" rather than the command above.

  7. Restart your server