Skip to content

Instantly share code, notes, and snippets.

@mmangione
Forked from guiwoda/upgrade-turnkey-redmine
Last active June 14, 2018 20:07
Show Gist options
  • Save mmangione/17fa45511a636c229aad1c35c10ef4d6 to your computer and use it in GitHub Desktop.
Save mmangione/17fa45511a636c229aad1c35c10ef4d6 to your computer and use it in GitHub Desktop.
cd /var/www
mv redmine redmine-old
hg clone --updaterev 3.4-stable https://bitbucket.org/redmine/redmine-all redmine
cp redmine-old/config/configuration.yml redmine/config/configuration.yml
cp redmine-old/config/database.yml redmine/config/database.yml
cp -r redmine-old/files/ redmine/files/
chown -R root:www-data /var/www/redmine
cd redmine
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