Skip to content

Instantly share code, notes, and snippets.

@bviktor
Created April 24, 2015 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bviktor/c351e89814b394a86a6f to your computer and use it in GitHub Desktop.
Save bviktor/c351e89814b394a86a6f to your computer and use it in GitHub Desktop.
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