Updating+pre-gem
- Back up your database and uploaded files!
- Enter your wagn root directory
By default this is named "wagn". It should have directories named "app", "config", "lib", etc. - 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`
- Update your libraries
bundle install
For more info see using bundler with wagn.
- Clear your cache
rake wagn:reset_cache # if using file caching, we recommend a manual delete of everything in tmp/cache
- 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.
- Restart your server