Environment Variables & Settings Objects in Ruby

Published: 13 June 2021
on channel: Mike Rogers
780
17

ENV's (Environment Variables) are a fantastic way to pass API credentials to your application without storing them in version control.

In this episode of quickly explain how an ENV works, how to add a fallback & an awesome approach to managing them across your application.

Sources

➡ https://github.com/bkeepers/dotenv
➡ https://github.com/ddollar/foreman
➡ https://andycroll.com/ruby/wrap-your-...

Chapters

0:00 - What are we going to do
0:18 - What is an ENV
1:32 - What is an .env file?
2:30 - Passing ENVs to your Application
4:00 - Adding fallback values with .fetch
4:50 - Settings Objects

Follow Me Online

➡ Blog: https://mikerogers.io/
➡ Twitter:   / mikerogers0  
➡ GitHub: https://github.com/mikerogers0
➡ YouTube:    / mikerogers0  
➡ BuyMeACoffee: https://www.buymeacoffee.com/MikeRogers0
➡ Dev.to: https://dev.to/mikerogers0

#RubyOnRails #ENVs


On this page of the site you can watch the video online Environment Variables & Settings Objects in Ruby with a duration of hours minute second in good quality, which was uploaded by the user Mike Rogers 13 June 2021, share the link with friends and acquaintances, this video has already been watched 780 times on youtube and it was liked by 17 viewers. Enjoy your viewing!