You don't need ,env file for heroku. Config variables is for that. I believe it's similar for other servers too.
Feb 10, 2015
6
Level 37
Dealing with .env on Heroku
You can't manually create a file unless you do it locally and then push it using git. How do you go about creating the production .env? Config variables?
Level 17
Yes env('APP_ENV') will work. You can set these vars in the dashboard or you can use the heroku toolbelt in command line to set them https://devcenter.heroku.com/articles/config-vars
Please or to participate in this conversation.