Redmine - FreeBSD 版 インストール - ruby ローカルインストール


 クラウディア


1. 概要
2. ローカルインストール
3. 結果
4. 備考

1. 概要

 これは、もっと前にやっておくべきだったかも・・・。  「ruby」の関連モジュール等が、「FreeBSD」本体で更新されると、「Redmine」で使用しているものとのバージョンが合わなくなったりします。  そうすると、「Redmine - トラブルシュート」の「モジュールが足りない?」てなことになります。  この状況を避けるには、「Redmine」の使用しているモジュールは、ローカルにインストールすればよい?  そういう方法があるようなので、試してみます。

2. ローカルインストール

 「Redmine」のプロジェクト所有者権限で。  「Redmine」のプロジェクトディレクトリへ移動して。

vi Gemfile
 下記の行をコメントアウト(行頭に「#」を追加)します。  つまり、「development」と「test」グループは使わない。

group :development, :test do
  gem 'debug'
end

group :development do
  gem 'listen', '~> 3.3'
  gem 'yard', require: false
  gem 'svg_sprite', require: false
end

group :test do
  gem "rails-dom-testing"
  gem 'mocha', '>= 2.0.1'
  gem 'simplecov', '~> 0.22.0', :require => false
  gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
  # For running system tests
  gem 'puma'
  gem "capybara", ">= 3.39"
  gem 'selenium-webdriver', '>= 4.11.0'
  # RuboCop
  gem 'rubocop', '>= 1.68.0', require: false
  gem 'rubocop-performance', '>= 1.22.0', require: false
  gem 'rubocop-rails', '>= 2.27.0', require: false
end
 次に。

bundle package --all
 下記のようなメッセージが表示されます。

[DEPRECATED] The `--all` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set cache_all true`, and stop using this flag
Fetching gem metadata from https://rubygems.org/.........
Fetching rake 13.2.1
Installing rake 13.2.1
Fetching base64 0.2.0
Fetching benchmark 0.4.0

・・・	略	・・・

Installing propshaft 1.1.0
Installing roadie-rails 3.3.0
Installing rails 7.2.2.1
Bundle complete! 28 Gemfile dependencies, 87 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./vendor/bundle`
Post-install message from html-pipeline:
-------------------------------------------------
Thank you for installing html-pipeline!
You must bundle Filter gem dependencies.
See html-pipeline README.md for more details.
https://github.com/jch/html-pipeline#dependencies
-------------------------------------------------
Post-install message from roadie-rails:
This would be the last version that supports ruby 2.7
Post-install message from rubyzip:
RubyZip 3.0 is coming!
**********************

The public API of some Rubyzip classes has been modernized to use named
parameters for optional arguments. Please check your usage of the
following classes:
  * `Zip::File`
  * `Zip::Entry`
  * `Zip::InputStream`

・・・	略	・・・

  * rqrcode-3.0.0.gem
  * rubyzip-2.3.2.gem
  * sanitize-7.0.0.gem
 メッセージを読む限り、少なくとも将来的には。

bundle package --all
 でなく。

bundle config set cache_all tr​​ue
 を使うべきようです。

3. 結果

 前項の結果。  何かしら設定しなければ、ならないのかしらと思っていましたが。  念のため、「Redmine」のサイドへアクセスしてみると。  エラーでアクセスできなかったものが、普通にアクセスできるようになっていました。  ふ~ん。設定は必要ないんだ。  便利・・・めでたしめでたし。

4. 備考

 本ページは、下記のサイトを参考にさせていただきました。
Redmine のオフラインインストール方法」
「Redmine をオフライン環境でインストール/アップデートしたい - Unofficial Redmine Cooking

AbemaTV 無料体験