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

How To Setup Environmental Variables In A Rails Application

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

Receive Stories from @fegzycole

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!