Lex
0
Q:

rails call env file

#in the .ENV file:
SECRET_TOKEN=qoLsDGcc8YEdeFQ8xWbtiwafMJvjUXpH

#in your code

key = ENV['SECRET_TOKEN']
0
MAIL_USERNAME: 'Your_Username' MAIL_PASSWORD: 'Your_Username'
0
config.before_configuration do  env_file = File.join(Rails.root, 'config', 'local_env.yml')  YAML.load(File.open(env_file)).each do |key, value|    ENV[key.to_s] = value  end if File.exists?(env_file)end
-1

New to Communities?

Join the community