简体   繁体   中英

How to access Rails 5.2 credentials with Cloud9 C9

I need help with how to access and edit my Rails 5.2 credentials.yml.enc file using Cloud9.

I've tried several different commands using the EDITOR=“something --wait” format, but each time I enter rails credentials:edit, I just get this error: “No $EDITOR to open file in.”

Any suggestions or help?

you can use from your terminal

EDITOR=vim rails credentials:edit

The config/credentials.yml.enc file opens in your terminal with vim. To edit it with vim: - move with the arrows - When you want to insert text press "i" when done press "ESC" - To save use ":w" - To exit use ":q"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM