shivabhusal / lacerate

Opensource Ruby App to scrape Google search results and generate reports
https://shivabhusal.github.io/lacerate/
1 stars 1 forks source link

Use env variables instead of config class #19

Open olivierobert opened 7 years ago

olivierobert commented 7 years ago

It's best practive to move all config variables to environment variables.

Using figaro, set up the file application.yml and move all config variables to it. Then use Env.fetch('CONFIG_KEY') to use it.

shivabhusal commented 7 years ago

Yes I have been using figaro since the beginning. Since there is no secret except facebook creds; only used in devise.rb