You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add gem and file for environment variables?
1) None
2) Add .env with Foreman
Purpose
Use dotenv gem + .env file + initializers by default
Checklist for changes:
Add gem 'dotenv-rails' to Gemfile
Add .env.sample file to the app root with content:
# NOTE: don't forget to:# 1) add a variable to .env on server# 2) stop and start puma process (right after you added new variables)
RAILS_ENV=development
Add script to setup script(copies vars from env sample file to env):
Conversation
Purpose
Use
dotenv
gem +.env
file + initializers by defaultChecklist for changes:
Add
gem 'dotenv-rails'
to GemfileAdd
.env.sample
file to the app root with content:setup
script(copies vars from env sample file to env):update
script(updates env vars from sample file):More info about
setup
andupdate
scripts hereP.S. Ping me if you are not agree, or have better idea.
The text was updated successfully, but these errors were encountered: