问题
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.
来源:https://stackoverflow.com/questions/50386493/heroku-local-warn-no-env-file-found-when-using-config-library-to-manage-enviro