Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ryannielson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
ryannielson
13y ago
Something more like the following is probably a better solution: if ENV['SECRET_TOKEN'].blank? raise 'SECRET_TOKEN environment variable is not set!' end App::Application.config.secret_token = ENV['SECRET_TOKEN']
2.
▲
by
ryannielson
13y ago
I wrote a gem called envious that could be used as an alternative to dotenv: https://github.com/RyanNielson/envious from what I can see it does a few things dotenv doesn't. Good guide though, I wrote Envious when I found out this problem
3.
▲
by
ryannielson
14y ago
I wrote a gem that I've used to help with the secret key problem in the past. It's called Envious: https://github.com/RyanNielson/envious Basically it adds a yml file, that is added to .gitignore, with configuration settings that get add