5
1

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 3 years have passed since last update.

enebular editorのflows_cred.jsonを取得する

Last updated at Posted at 2020-12-04

enebular Advent Calendar 2020の5日目を担当します、ニアムギです。
今回はenebular editorにて編集しているフローの、flows_cred.json(資格情報が記載されているjsonファイル)がどこにあるか紹介したいと思います。

結論から

Windows環境の場合、以下のフォルダに入っています。

C:\Users\[ユーザー名]\AppData\Local\Programs\enebular-editor\resources\app\node-red

Mac環境については手元にないので分からないのですが、おそらく似たようなフォルダ構成になっていると思われます。

editor_1.PNG

経緯

以下のようにenebular editor上でもフローをダウンロード出来る機能はあります。
editor_0_1.PNG
editor_0_2.PNG

しかしながらこの方法ではflows.json(フローが記載されているjsonファイル)は取得出来てもflows_cred.jsonは取得出来ません。
ラズパイやHerokuなど、enebularからスムーズにデプロイ出来る場合は気にしなくて良いのですが、それ以外のケースだったためflows_cred.jsonの居場所を探してみました。

更新タイミングに注意

1点だけ。ファイルの更新タイミングに注意が必要です。

  • enebular editorを立ち上げた時 → ファイルは初期化されます
  • ダッシュボードからフローの編集画面に移行したとき → flows.jsonとflows_cred.jsonが更新されます
  • 編集してデプロイボタンを押したとき → flows.jsonとflows_cred.jsonは更新されません!

つまり編集した最新のファイルを取得したい場合は、一度ダッシュボードに戻ってから編集画面を開きなおします。
ここだけ注意すれば問題ありません。


今回小ネタになってしまったのですが、参考になれば幸いです。
ではでは。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?