LoginSignup
0
2

More than 5 years have passed since last update.

Redmineでプラグインを簡単に試す

Last updated at Posted at 2017-08-20

Redmineのプラグインを気軽に試す手順

  1. 仮想環境にRedmineを入れる
    手順は以下に記載しています。
    http://qiita.com/yukiyoshimura/items/3317a6af7cf1ba5430e1

  2. プラグインを入れる
    今回はredmine_backlogs(https://github.com/backlogs/redmine_backlogs/) を入れてみます。

terminal
# 仮想環境につなぐ
vagrant ssh 
# apacheユーザに切り替え
sudo su -s /bin/bash apache
# パスをセット
export PATH=$PATH:/usr/local/bin
# プラグイン配置先フォルダに移動
cd /var/lib/redmine/plugins
git clone https://github.com/backlogs/redmine_backlogs.git
## redmine3系の場合のみ以下作業を実施 ##
cd redmine_backlogs
git checkout feature/redmine3 # →redmin3.x用のブランチ
cd ../
####################################
cd /var/lib/redmine
/usr/local/bin/bundle install
/usr/local/bin/bundle exec rake redmine:plugins:migrate RAILS_ENV=production
# apache再起動
sudo apachectl restart

apache再起動後、redmineにアクセスしてみるとプラグインのところでredmine_backlogsが追加されていることが確認できます。

bundle exec rake redmine:plugins:migrate RAILS_ENV=productionで以下メッセージが出る場合

There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements.

地道に/var/lib/redmine/plugins/redmine_backlogs/Gemfileの該当gemのバーションを合わせていきます。または該当gemを削除してもOK。

0
2
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
2