I'm using Symfony 4 and Hostgator's shared hosting.
I'm trying to deploy my app to the site. I have uploaded the app to the server and then moved and configured the index.php to the public_html folder. When I ran the site I got this error on the .env file.
Fatal error: Uncaught Symfony\Component\Dotenv\Exception\PathException: Unable to read the "/home4/xxx/public_html/yyy/../.env" environment file. in /home4/xxx/yyy/vendor/symfony/dotenv/Dotenv.php:54 Stack trace: #0 /home4/xxx/public_html/yyy/index.php(15): Symfony\Component\Dotenv\Dotenv->load('/home4/xxx/pu...') #1 {main} thrown in /home4/xxx/yyy/vendor/symfony/dotenv/Dotenv.php on line 54
I have read that the environmental file should only be use on development stage, that's probably why the exception. But then what exactly I need to do next?