Heroku local [WARN] No ENV file found when using Config library to manage environments

青春壹個敷衍的年華 提交于 2019-12-11 18:29:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!