Ruby on Rails Monday, July 2, 2018

Thanks. I am using vscode. But your suggestion worked as is for it too. Thank you!

On Sunday, July 1, 2018 at 10:36:06 PM UTC-4, Hassan Schroeder wrote:
On Sun, Jul 1, 2018 at 7:30 PM, Pito <pito...@gmail.com> wrote:
> $ rails credentials:edit
>
> displays this immediately:
>
> New credentials encrypted and saved.
>
> Before my editor window even opens. And the window then always opens with a
> blank page.
>
> Any idea whats going on?

19:31 ~/testcases/rails/rails-5-2/defaults:(scaffold-test)[ruby-2.5.1]$
rails credentials:edit
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.
19:31 ~/testcases/rails/rails-5-2/defaults:(scaffold-test)[ruby-2.5.1]$

What editor are you using?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ba80a1e8-3a00-4819-96d8-2e6851ccfc3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment