그동안 개인적으로 PC에 설치해서 사용하던 Redmine을 업그레이드를 해야할 상황이 발생했다.

(정기적으로 밀어줘야 하는 윈도우의 특성으로 인해 어쩔수 없이..)

 

구글링을 통해 몇몇 업그레이드 방법을 찾아서 따라해 보았으나 시원찮던 차에 결국 레퍼런스라 할수 있는 bitnami 가이드대로 성공.

 

1. mysql dump &  복구

2. 관련 첨부file 디렉토리 복사

3. 2.2에서 3.3으로 업그레이드됨에 따라 마이그레이션 수행 (이부분에서 다른 블로그 따라하니 오류)

 

자세한 방법은 다음 링크 참조

 

https://wiki.bitnami.com/Applications/BitNami_Redmine#How_to_upgrade_Redmine.3f


https://docs.bitnami.com/general/apps/redmine/administration/upgrade/

 

 요약 ( 아래는 리눅스 개념으로 설명하지만 Windows에서도 동일하게 적용됨 )


I. On the original Redmine server, follow the steps below:


 1. Create a database backup file named bitnami_redmine.sql:

$ mysqldump -u root -p --databases bitnami_redmine --add-drop-database > bitnami_redmine.sql

 2. Compress Redmine application and plugin files from the directory /opt/bitnami/apps/redmine/htdocs/files:

$ tar czf redmine_files.tar.gz -C /opt/bitnami/apps/redmine/htdocs/files .
$ tar czf redmine_plugins.tar.gz -C /opt/bitnami/apps/redmine/htdocs/plugins .

II. Launch a new Redmine server and follow the steps below:

 1. Stop Apache:

$ sudo /opt/bitnami/ctlscript.sh stop apache

 2. Upload the file redmine_files.tar.gz to the new server.

 3. Restore the database backup:

$ mysql -u root -p < bitnami_redmine.sql

 4. Copy the Redmine application files to /opt/bitnami/apps/redmine/htdocs/files, by copying redmine_files.tar.gz to the new instance and extract its contents:

$ sudo tar xzf redmine_files.tar.gz -C /opt/bitnami/apps/redmine/htdocs/files

5. Temporarily give full write permissions to the Redmine log file:  (Window의 경우 생략가능)

$ sudo chmod 666 /opt/bitnami/apps/redmine/htdocs/log/production.log

6. Migrate the database to the latest version:

$ cd /opt/bitnami/apps/redmine/htdocs/
$ sudo ruby bin/rake db:migrate RAILS_ENV=production


자세한 내용은 아래 링크 참조 

(본인은 Redmine2.x에서 3.3 업그레이드 성공함)

https://docs.bitnami.com/general/apps/redmine/administration/upgrade/