Heroku local [WARN] No ENV file found when using C

2019-08-29 15:16发布

问题:

I'm using Config library to mange my environments, so i do not have .env file, how to make heroku ignore this fact ?.

It work fine when i deploy to Heroku, but fails locally. I tried:

heroku local web which fires npm run build && node dist/Server // [WARN] No ENV file found

回答1:

The only way to make Heroku remove this warning is to create a .env file.
This warning shouldn't be problematic in itself though, as it shouldn't prevent your app from running.