paint-brush
How To Setup Environmental Variables In A Rails Applicationby@fegzycole
2,009 reads
2,009 reads

How To Setup Environmental Variables In A Rails Application

by Iyara Ferguson1mMarch 7th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Iyara Ferguson

Iyara Ferguson

@fegzycole

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

About Author

Iyara Ferguson HackerNoon profile picture
Iyara Ferguson@fegzycole

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Learnrepo