I ended up using Forge instead of Lightsail. Forge did a great job of setting up a new AWS VPC. Also I love the easy SSL setup as well as easy Papertrail integration.
Bitnami Artisan ClearCache
Has anyone seen a guide for deploying Laravel on Lightsail? I like it because you can wordpress your content, and put utility pages in Laravel. (Yes, I know Forge is a thing)
Set up Laravel on AWS Lightsail (bitnami) according to this: https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e
Works great on Lightsail until try to enable database.
Trying to enable mysql, it didn't seem to be picking up my .env or config/database.php settings. Gave error: Illuminate \ Database \ QueryException (1045) SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'127.0.0.1' (using password: YES) I restarted apache and php artisan cache:clear; even rebooted server. Eventually found the problem of cached config in /bootstrap/cached
php artisan config:clear is needed to clear that bootstrap cache, not (php artisan cache:clear) All OK now.
I wonder if it worth the time to publish the guide if there isn't one already....
Please or to participate in this conversation.