DEV Community

Discussion on: 5 reasons why your .env environment variables don't work

Collapse
 
diegogonzalezcruz profile image
Diego G. Cruz

I always wonder if a space or double quotes are required.

Examples:

ENV_1=test
ENV_2="test"
ENV_3 = test
ENV_4 = "test"

What do you think?

Collapse
 
charlesw_dev profile image
Charles Watkins

I've always done ENV_1=test. Some tools, like Docker, consider the quotes part of the value and they expect no space between the variable name and the value.