redmine upgrade 0.9.4 to 0.9.6

Added by mythos mint about 7 years ago

I just did an upgrade of my work's redmine install from 0.9.4 to 0.9.6. Here are the steps I used just in case anybody needs them:

Using bitnami's full redmine stack @ http://bitnami.org/stack/redmine

- stop services
- using bitnami's /bitnami/ctlscript.sh : sudo ./ctlscript stop

- rename redmine folder to redmine-old

- copy new redmine into bitnami/apps folder (rename folder redmine)

- Copy your database settings-file config/database.yml into the new config directory.
- Copy your email settings-file config/email.yml into the new config directory.

- create redmine/tmp/pids folder

- run use redmine script in /opt/bitnami/: sudo ./use_redmine

Copy these folders to /redmine/
  • redmine-old/conf
  • redmine-old/scripts
Copy these files to /redmine/

- In the /redmine/ run:

(make sure mysql service is running: sudo ./ctlscript start mysql)
-rake generate_session_store
-rake db:migrate RAILS_ENV=production

- I move plugins over later (but you can do it here)

rake tmp:cache:clear
rake tmp:sessions:clear

- Start all services see if it works: sudo ./ctlscript restart

- Look in the redmine/logs folder for any issues

- Now you can copy over plugins to redmine/vendor/plugins

You can do them all at once. I only do one at a time to make sure there are no issues.

in /redmine/ run:

rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production 
rake db:migrate_plugins RAILS_ENV=production 
rake tmp:cache:clear
rake tmp:sessions:clear

- Restart redmine, see if it works: sudo ./ctlscript restart redmine

- copy over /redmine/files