I set up a server on Forge and have noticed that the only way I can get beanstalkd and a few other things to work is if I hardcode them into the app's config files rather than in the site's .env file, which, obviously is not optimal.
Anybody else have this issue or know of any fixes?
Did you run php artisan config:clear? Also, run php artisan cache:clear And, it may be your site path is not correct if the .env is not found in the root.
Whenever change .env variables in forge, ssh to your server and run php artisan config:cache. This will clear the cached config files then look to .env and create new ones with the new variables. I had this problem before and that always updates it.
If you want to check it worked, run php artisan tinker, then use the config helper function to view any config file and see if it has changed properly.
Not on forge, but a DigitalOcean server and there were no values in $_ENV or env() not sure for how long, and running php artisan config:clear got them back again, after some head scratching, so thanks
Laravel caches your config key/value pairs. Anytime you change something in the .env file, you should run php artisan config:clear and then if you chosse to force the caching php artisan config:cache