今回の目標
- Apacheと連携して、作ったredmineに社内からアクセスできるようにする
- プラグインを入れる
参考
http://redmine.jp/tech_note/apache-passenger/ こちらに沿って作業します。
プラグインは
https://qiita.com/kooohei/items/3c86554af93d12ad9322 の入れ方を参考に
https://qiita.com/will_meaning/items/97f5ff6b1a3a66fcf975 のおすすめプラグインからチョイスして導入させていただきました。
エラーと解決
その1
$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
rake aborted!
Redmine::PluginRequirementError: redmine_lightbox2 plugin requires Redmine 4.0 or higher but current is 3.4.10.stable
Redmine 4.0かそれ以上といわれたので、おそらくredmine_lightbox2のバージョン違いだろうと予測し
https://github.com/paginagmbh/redmine_lightbox2/tree/redmine-3.4 からredmineの古いバージョン用プラグインをインストール。
再度$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
すると成功。
その2
ブラウザ上で下記エラーが発生
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
Back
error.logを確認すると
ActionView::Template::Error (uninitialized constant ViewCustomize::INSERTION_POSITION_HTML_HEAD):
とのこと。
プラグインの該当フォルダredmine-view-customize
をview_customize
へ変更。(https://github.com/onozaty/redmine-view-customize/issues/28)
$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
$ sudo apachectl restart
こちらも忘れず実行。ブラウザをリロードすると解決。