Is there a way to use figaro with a master?

I prefer not to use dotenv, but really would like to use a grandmaster. Will he work with figaro?

I am currently using my own yaml files to load env variables, and I store them in the root of my project in the .env directory. The wizard seems to be trying to read the .env file and is suffocating in my .env directory.

So, alternatively, using figaro, is there a way to change where the team leader searches for my env variables?

+5
source share
1 answer

I use wizards (0.78) with figaro (1.1.1) in my Rails (4.2) application without any problems. Currently figaro requires all variables to be in config/application.yml or set to ENV . Foreman will always try to download the .env file if it exists (unfortunately, they do not distinguish between the file and the directory in their scan), if you do not specify your .ENV files with - e

I think you have 3 options:

1) Use figaro and move your custom .yml files to config/application.yml

2) The exact wizard to the user .env file as a workaround (it must exist): touch.emptyenv novice wizard -e.emptyenv

3) Rename the .env directory to another location, for example. '.custom_env'

I hope this helps.

0
source

Source: https://habr.com/ru/post/1214796/


All Articles