1

我无法访问命令:rails credentials:edit使用 Codeanywhere 环境。我正在运行 Rails 5.2.1 和 Ruby 2.5.1。

我从终端收到以下回复:

No $EDITOR to open file in. Assign one like this:

EDITOR="mate --wait" bin/rails credentials:edit

For editors that fork and exit immediately, it's important to pass a
wait flag, otherwise the credentials will be saved immediately 
with no chance to edit.

我似乎无法让这个工作。

有人可以帮忙吗?

谢谢你。

4

1 回答 1

0

这意味着你没有设置决定你的编辑器的环境变量。输出中的示例将使 TextMate 成为您的默认编辑器。

不确定 CodeAnywhere 中有哪些编辑器,但大多数系统都可以访问 VIM,因此您可以尝试运行:

EDITOR="vim --wait" bin/rails credentials:edit

您可能不需要传递该--wait选项。

于 2018-11-28T14:48:49.457 回答