phplaraveldeploymentlaravel-5env

Set location of laravel .env


So I just published a build of laravel to my production server. But the .env file was readable when I uploaded it. So I uploaded it to root of my site next to the public_html/ directory.

My question is: How to tell laravel where the .env file is located? It worked when I had it in the public_html/ folder but how do I tell it to look in the root folder?


Solution

  • I ended up setting a symlink from public to public_html and everything worked as expected