.env vs config.json

Hi there,

I have a view ParseServer instances running on a VPS and it took me some time to get Parse running. The problem was getting the configurations correctly.
Normally the settings are done in a .env file, but after some googling and trial and error I fixed it by adding config.json file.

So, what is actually used by the ParseServer? .env, config.json or both? If both, what settings are overwritten and what nog? Are there differences between running on a machine directly and running in a docker container…?

Hope someone can clarify a bit for me, thank you.

1 Like

@DevSolo .env is relevant to the environment of the machine(no matter the platform), but config.json is relevant to the parse-server. You can manage parse-server initialization configs with this file or in code.

1 Like