http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade
- mysqldump로 디비 백업 (유실 대비)
- /usr/bin/mysqldump -u <username> -p<password> <redmine_database> | gzip > /path/to/backup/db/redmine_`date +%y_%m_%d`.gz
- 패키지 다운로드 redmine.org 에서 최신버전 다운로드
- 특정 위치에 압축 해제, 원하는 곳에!
- 기존 구버전에서 config/database.yml 복사
- 구버전에서 config/configuration.yml 복사
- files 디렉터리 복사 (cp -a 옵션 사용하면 편리)
- plugins 디렉터리 복사
- public/plugin_assets apache.apache 755 폴더 생성. files, log, tmp 폴더도 포함
- tmp 폴더 하위 모두 apache.apache 으로 소유자 변경
- bundle install --without development test 실행
- rake generate_secret_token
- 디비 마이그레이션
- rake db:migrate RAILS_ENV=production
- rake redmine:plugins:migrate RAILS_ENV=production
- 정리
- rake tmp:cache:clear
- rake tmp:sessions:clear
- service httpd restart
끝
만약 인터넷이 안되면, 아래처럼 gem을 하나씩 설치하는 방법도 있다.
gem install --local ~/?
bundle install --local --without development test