1
1

More than 1 year has passed since last update.

credentials.yml.encをRubyMineで編集する

Posted at

前提環境

$ ruby -v
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x64-mingw32]
$ rails -v
Rails 7.0.1

OSはWindows10 64bitです。

RubyMineの実行ファイルパスを取得する

スタートメニューなどからRubyMineのアイコンを探して、[ 右クリック->(その他)->ファイルの場所を開く ]をrubymine64.exeファイルが出てくるまで行います。

そうしたら、ファイルをコピーしてエクスプローラーのアドレス欄に張り付けて、その文字列をコピーしてください。

環境変数を設定する

値の例: "C:\...\rubymine64.exe --wait"

  • 一時的
set EDITOR=先ほど取ってきたパス --wait
  • 恒久的
setx EDITOR 先ほど取ってきたパス --wait

編集

rails credentials:edit
1
1
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
1
1