Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Redmine 3 upgrade
export OLD_REDMINE=2.6.2
export NEW_REDMINE=3.0.1
systemctl stop nginx.service
wget http://www.redmine.org/releases/redmine-${NEW_REDMINE}.tar.gz
tar xf redmine-${NEW_REDMINE}.tar.gz -C /opt
cd /opt
rm redmine
ln -s redmine-${NEW_REDMINE} redmine
\cp -f redmine-${OLD_REDMINE}/config/configuration.yml redmine/config
\cp -f redmine-${OLD_REDMINE}/config/database.yml redmine/config
\cp -f -R redmine-${OLD_REDMINE}/files redmine
\cp -f -R redmine-${OLD_REDMINE}/plugins redmine
\cp -f -R redmine-${OLD_REDMINE}/log redmine
<manually copy any downloaded themes from public/themes>
cd /opt/redmine
export PATH=${PATH}:/usr/local/bin
bundle config build.nokogiri --use-system-libraries
bundle install --verbose --without development test rmagick
rake generate_secret_token
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:plugins:migrate
rake tmp:cache:clear
rake tmp:sessions:clear
chown -R nginx.nginx /opt/redmine-${NEW_REDMINE}
systemctl start nginx.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.