So I've been having some problems with PM2 and node-config. Whenever I run my app with PM2, I get the error; FATAL: NODE_APP_INSTANCE value of '0' did not match any instance config file names.
I've tried all the documented ways of "fixing" this such as making a default-0.json/js
file, setting the instance_var
variable in my pm2 config, and I even tried setting an actual system environment variable, but nothing is working.
I was wondering if anyone had any ideas on how I could fix this?