アップグレード

最終更新: 2018/10/20 [原文]

Step 1 - 動作環境の確認


Redmine  

Step 2 - 




Redmine Redmine 

Step 3 - 


Redmine  

Option 1 - 


1. Redminetarball  

/

fileslogtmp

2.  config/database.yml  config Redmine 1.4MySQLRuby 1.9 mysql2 

3a.  config/configuration.yml  config 

3b.  1.2.0 config/email.yml  config/configuration.yml  configuration.yml.example 

4. files Redmine(Redmine)

5. plugins Redmine(1.x vendor/plugins )Redmine

6. RedmineRedminegem:
bundle install --without development test

ImageMagickrmagick:
bundle install --without development test rmagick

gem( config/database.yml 'mysql2'mysql2 gem)使 config/database.yml  'bundle install' 

Redmine使gem(: fcgi)Redmine Gemfile.local  'bundle install' 

7. Redmine:

Redmine 2.x


config/initializers/secret_token.rb (2.x)

config/initializers/session_store.rb (1.x)



bundle exec rake generate_secret_token

 config/secrets.yml 
http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#config-secrets-yml

8. public/themes 使

重要

絶対に config/settings.yml を古いもので上書きしないでください。

SVNチェックアウトのアップグレード


1. Redmine:
svn update

2. gem
bundle update

Step 4 - 


Redmine
bundle exec rake db:migrate RAILS_ENV=production


bundle exec rake redmine:plugins:migrate RAILS_ENV=production

Step 5 - 


1. 
bundle exec rake tmp:cache:clear RAILS_ENV=production

2.  ( puma, thin, passenger)

3. Redmine


reposman.rb UNIX(--group=groupnamehere)Redmine.pm  ApacheApache

secret_token.rb 


Redmine 2.0.0cookie session_store.rb 

2.0.0 session_store.rb  secret_token.rb :
bundle exec rake generate_secret_token

Note

Redmineのリポジトリとtarballには config/initializers/session_store.rb ファイルは含まれていません。上記のコマンドを実行することで生成されます。

関連情報

Redmineのアップグレードについて参考になる情報です。