How do I upgrade Warehouse?Post to delicious
After downloading and uncompressing the new version, simply copy over your config files, and anything else that may have changed, and then restart the rails app. You can make things easier on yourself by identifying the shared files and using symlinks. Warehouse comes with a built-in command for this: rake warehouse:setup. See more in the commands FAQ entry. If you want to set this up manually:
# main warehouse directory /projects/warehouse # store releases in a sub directory /projects/warehouse/releases/warehouse-1.0.1 # symlink the current one to a common path to # help out your web server configuration. /projects/warehouse/current # => releases/warehouse-1.0.1 # store your shared files in a central spot /projects/warehouse/shared/config/database.yml /projects/warehouse/shared/config/initializers/warehouse.rb /projects/warehouse/shared/public/avatars # symlink those inside your releases $ ln -s /projects/warehouse/shared/config/database.yml \ /projects/warehouse/releases/warehouse-1.0.1/config $ ln -s /projects/warehouse/shared/config/initializers/warehouse.rb \ /projects/warehouse/releases/warehouse-1.0.1/config/initializers $ ln -s /projects/warehouse/shared/public/avatars \ /projects/warehouse/releases/warehouse-1.0.1/public
After this is setup, your upgrade process would consist of this:
- Extract tar.gz file to /releases/warehouse-X.X.X
cd releases/warehouse-X.X.Xrake warehouse:upgrade
This will reset the 'current' symlink and ensure that shared files are properly moved over.
Talk To Me Now!
If you've got an IRC client, you can join us in #activereload on irc.freenode.net. We'll talk about ninjas, code, gaming and more ninjas.
—Robert Bousquet, New LeadersWith all those cooks in the kitchen at the same time while launching our latest project, Warehouse helped us keep tabs on everything!

