0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WSLでプラグインがないと言われてredmine:plugins:migrateできない

Posted at

WSL(Windows Subsystem for Linux)で、いつものノリでRedmineのプラグインをインストールしようとしたら、以下のようにうまくいきませんでした。

two-pack@two-pack-pc$ bundle exec rake redmine:plugins:migrate
Plugin two-pack-pc was not found.

調べてみると、WSLでは環境変数NAMEにホスト名が入っているようで、ホスト名のプラグインが指定したと見なされて、プラグインがないと言われてしまっていました。
Ubuntu 18.04 LTSをインストールした直後で確認したところ、以下のようになりました。

two-pack@two-pack-pc:~$ env | grep NAME
WSL_DISTRO_NAME=Ubuntu-18.04
NAME=two-pack-pc
LOGNAME=two-pack

以下のようにして、プラグイン名を明示してうまく行きました。

two-pack@two-pack-pc$ NAME=redmine_auto_assign_group bundle exec rake redmine:plugins:migrate
0
0
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?