Update the code to the latest stable version

kej edited this page Sep 19, 2012 · 5 revisions

To update your code to the latest stable version, you pull the new code, bundle install new gems, migrate your database to the newest structure, and then restart the server and the background worker. We have prepared a script that spells out the steps:

/ext/update-with-migration

Mind that this script will have to be adapted to your server environment, we are providing a "dist" version, that has to be first converted into a shell script and you should carefully go through the steps and change everything that is specific to your situation:

cp update-and-migration.sh.dist update-and-migration.sh

Configure the root path and rails environment in lines 3 and 4. Example for our china.befdata development environment:

ROOT=/var/www/development/china
RAILS_ENV=development

The script itself is invoced as usual:

./update-and-migration.sh

You might have to make it executable beforehand:

chmod +x update-and-migration.sh
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.