rm config/master.key config/credentials.yml.enc
EDITOR="code --wait" bin/rails credentials:edit
EDITOR="code --wait" bin/rails credentials:edit --environment production
RAILS_ENV=production bin/rails c
- 开发环境
- config/master.key (密钥)
- config/credentials.yml.enc (加密后的秘文)
密钥 + 秘文 = 还原出来的密码列表
- 生产环境
- config/credentials/production.key (密钥)
- config/credentials/production.yml.enc (加密后的秘文)
RAILS_MASTER_KEY=OBVIOUSLY_FAKE_PWD pulao_deploy/starter_for_local.sh
rm config/database.yml config/credentials.yml.enc \ config/master.key
This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
git clone [email protected]:bitecroissant/rspec_api_documentation.git vendor/rspec_api_documentation
gem 'rspec_api_documentation', path: './vendor/rspec_api_documentation'