I have been delaying updating the cms for this site for some time. The site uses Vosao running on Google App Engine and apart from some slow performance at times, I have been very happy with it. That said, for the longest time, I was using the 0.2 release which was fine until lately when I began having some minor data corruption problems. The current version of Vosao 0.7 looks great, and I was really looking forward to the performance improvements that had been added over the past 5(!) versions not to mention tag clouds, rss feeds, and MediaWiki syntax support so I decided to update.
version 0.2 to 0.3 (release notes)
-
The upgrade to version 0.3 requires a full rebuild of the database, so first we need to backup all ofthe current site data. In the Vosao admin console, export the full site. Resources NOT in
page/*and/theme/*will not be exported by the site export and must be backed up individually. - Take the time to update your App Engine SDK
- Checkout tag 0.3 from the subversion repository
-
Edit the
make.shfile and change the app name to match your app name (appname=****) . At the same time, you may want to remove the -o flag (offline) and added -cpu (check plugin updates) to make sure that Maven downloads any new libraries automatically when run. My final make.sh looked something like this:mvn -cpu -Dmyapp install -
Make the same changes for /
web/build.sh, and /web/make.sh -
The default scripts assume that your Google App Engine SDK is located in
/opt/gae. You may need to make a symbolic link to make/opt/gaepoint to your GAE SDK installation. -
Build the new version and use the
run.sh script to test locally. -
When you are satisfied that everything is running properly, edit the
update.shscript to add your GAE email address(-email=appengine_account@gmail.com") -
Run
update.shto upload version 0.3 to GAE - When the upload has completed, in the GAE admin console, set version 0.3 as default.
-
In your Vosao browser, clear all your cookies and access the setup url
http://myapp/setupto finish the install. - Now quickly log into the Vosao administration console and change the user settings to remove the default admin user.
-
Finally import all of your content that you exported from your previous version and you should be good to go.
version 0.3 to 0.4 and beyond (release notes)
Updating any version after version 0.3 is much simpler that updating to 0.3 and involve a repetition of a subset of the previous steps
- Export and backup your current installation
- Check out next version tag from subversion
-
Alter the
make.shandupdate.shfiles adding your app name and email address as above -
Run
update.shand upload the new version to GAE - Switch the default version to the latest version
- Clear your cookies in the Vosao browser
-
Access the update url
http://myapp/update - Confirm changes
Some notes:
- The plugin API often changes and if you are using any additional plugins, they will be disabled and need to be reinstalled after an update.
- After version 0.5 XSL is no longer supported. If you have templates that use XSL, they will need to be changed to use Velocity.
-
In some versions the update
update.shscript contains a GAE rollback command. This should not be a problem with an update, but you may wish to comment it out if you have no need to perform a rollback to delete any partially completed updates. (See http://code.google.com/appengine/docs/java/tools/uploadinganapp.html)