How To Setup Environmental Variables In A Rails Applicationby@fegzycole
1,653 reads

How To Setup Environmental Variables In A Rails Application

March 7th 2020
1 min
by @fegzycole 1,653 reads
tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

Figaro is a rubygem that uses a single YAML file located in the config directory, to hide environmental variables. To use any of them in any part of your application, simply call them as follows;. Use the gem to hide the environment variables in the application.yml file to prevent the file from being uploaded to the various version control repository management services. To use them in an application after installing and setting up figaro, simply add the following to the.config/application.yMLfile in the root directory of your project.
featured image - How To Setup Environmental Variables In A Rails Application
Iyara Ferguson HackerNoon profile picture

@fegzycole

Iyara Ferguson
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa