Skip to content

[Kamal 2] How to use env vars or secrets for hosts/server ip?? #1137

Answered by jgmontoya
jgmontoya asked this question in Q&A
Discussion options

You must be logged in to vote

It was a matter of using the overwrite: true option on the production config:

<% require "dotenv"; Dotenv.load(".env.production", overwrite: true) %>
...

This will make .env.production keys have precedence over .env keys

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ehutzelman
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jgmontoya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants