Is there a comment character for foreman's .env file?

GreenAsJade picture GreenAsJade · Nov 3, 2014 · Viewed 31k times · Source

Can you comment out lines in a .env file read by foreman?

Answer

GreenAsJade picture GreenAsJade · Nov 4, 2014

FWIW, '#' appears to work as a comment character.

It at least has the effect of removing unwanted environment declarations. It might be declaring others starting with a #, but... it still works.

EG

DATABASE_URL=postgres://mgregory:@localhost/mgregory
#DATABASE_URL=mysql://root:secret@localhost:3306/cm_central

results in postgres being used by django when started by foreman with this .env file, which is what I wanted.