Skip to content
daveho edited this page Mar 5, 2013 · 4 revisions

Upgrading CloudCoder to the most recent version is easy! As long as you are running v0.0.5 or later, here is the procedure.

Upgrading the webapp

Log into the cloud account on the webapp server, change directory to the webapp directory in the cloud user's home directory, and run the ls command. Make a note of the most recent version of the webapp jar file. For example, if you are running version 0.0.5, you will see a file called cloudcoderApp-v0.0.5.jar.

Next run the following command:

java -jar cloudcoderApp-vXXX.jar upgrade

Substitute the current version (e.g., 0.0.5) in place of XXX. The upgrade command will check to see if a more recent version of CloudCoder is available. If not, it will print the message

This jar file is already at the latest version

If a more recent version is available, the command will download the more recent jar file and copy all of the required configuration information from the old jar file to the new one. If everything is successful, you will see a message of the form

Success! Upgraded jar file is cloudcoderApp-vYYY.jar

where YYY is the most recent version. You should then run the following commands to shut down the previous version, migrate the database schema (if necessary), start the new version:

java -jar cloudcoderApp-vXXX.jar shutdown
java -jar cloudcoderApp-vYYY.jar migratedb
java -jar cloudcoderApp-vYYY.jar start

Replace XXX with the old version and YYY with the new version.

Install

Downloads

Screenshots

For more info (demo server, exercise repository, contributing to cloudcoder, etc): cloudcoder.org

Clone this wiki locally