LoginSignup
5
9

More than 5 years have passed since last update.

Bitnamiにeasy ganttをインスコ

Last updated at Posted at 2018-01-22

バージョン前提

OS : Windows7 32bit
Bitnami : 3.4.3-1
easy gantt : 2016.07.RC

公式のインスコ説明

  • Do NOT install plugins as a ROOT user
  • First, delete all old Easy Gantt plugins if exists (plugins/easy_gantt*)
  • Copy all unzipped plugins into REDMINE_ROOT/plugins
  • Run:
  $ bundle install
  (or bundle update)
  $ bundle exec rake db:migrate RAILS_ENV=production
  $ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
  • Restart server

(でもBitnamiは動作保証しないぜって書いてある気がする)

bundleが動かない

d:\Bitnami\redmine-3.4.3-1> bundle install
Could not locate Gemfile or .bundle/ directory

とりあえずredmine関連で追加されたPATHが¥と/が混在していたので修正。
(Adminじゃないのでbatを作成)
あとGemfileは./apps/redmine/htdocsにあるので作業ディレクトリを変更。

> cd ./apps/redmine/htdocs
> bundle install

mySqlサーバに接続できない

> bundle exec rake db:migrate RAILS_ENV=production
Mysql2::Error: Can't connect to MySQL server on '127.0.0.1' (10061)

なんだ。起動させておくのか。

image.png

NameError: uninitialized constant RedmineExtensions

> bundle exec rake db:migrate RAILS_ENV=production
rake aborted!
NameError: uninitialized constant RedmineExtensions

1時間ほど試行錯誤しましたが、この人がBitnamiの公式ガイドを参考にしたら解決できたと言っていたので、同じ操作をしたら行けました。
https://docs.bitnami.com/general/apps/redmine/#troubleshooting-plugin-installation

> bundle install --no-deployment
> bundle exec rake db:migrate RAILS_ENV=production
> bundle exec rake redmine:plugins:migrate RAILS_ENV=production

意味はわかってませんが、なんとかできました。

(追記)オフラインでのインストール

同じ環境でオンラインのものを用意して、そちらでインストールしたあとで、./apps/redmine/htdocs/vendor/cacheフォルダをまるっとコピー。

--localオプションをつけたらあとは同様です。

> bundle install --no-deployment --local

個人用なのでさくっとやりたいときは、足りないといわれたGemファイルを直接
https://rubygems.org で探してダウンロードしてくる手もあるようです。

Some gems seem to be missing from your vendor/cache directory.
Could not find gem 'factory_girl (>= 0) x86-mingw32' in any of the gem sources
listed in your Gemfile or installed on this machine.

(追記2) Easy Redmine

チェコの会社で、プラグインホスティングや統合パッケージも売ってるのか。有用ならパッケージで会社に入れたいが使う人がどれだけいるのか。

  • ローカライズ対応
  • 実用的な機能
  • Redmine Pluginの導入可否
  • 価格

とりま、Easy WBSEasy Chatも入れてみようかなぁ。。。

5
9
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
5
9