LoginSignup
0
0

More than 3 years have passed since last update.

OSXにredmine 3.4を入れるメモ②

Posted at

今回の目標

  • 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-customizeview_customizeへ変更。(https://github.com/onozaty/redmine-view-customize/issues/28)

$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
$ sudo apachectl restart

こちらも忘れず実行。ブラウザをリロードすると解決。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0