Created
January 15, 2014 19:59
-
-
Save guiwoda/8443360 to your computer and use it in GitHub Desktop.
Upgrade turnkey redmine as in http://www.turnkeylinux.org/forum/general/20120722/guide-how-upgrade-redmine-latest-version-203-painlessly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var/www | |
mv railsapp railsapp-old | |
hg clone --updaterev 2.0-stable https://bitbucket.org/redmine/redmine-all railsapp | |
cp railsapp-old/config/email.yml railsapp/config/configuration.yml | |
cp railsapp-old/config/database.yml railsapp/config/database.yml | |
cp -r railsapp-old/files/ railsapp/files/ | |
chown -R root:www-data /var/www/railsapp | |
cd railsapp | |
gem install bundler | |
gem install test-unit | |
bundle install --without development test rmagick | |
mkdir public/plugin_assets | |
rake generate_session_store | |
rake db:migrate RAILS_ENV=production | |
chown -R www-data:www-data files log tmp public/plugin_assets | |
rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production | |
rake db:migrate_plugins RAILS_ENV=production | |
chmod -R 755 files log/ tmp/ public/plugin_assets | |
rake tmp:cache:clear | |
rake tmp:sessions:clear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment