I have a Laravel (Boo! Hiss!) application that I’ve (rightly or wrongly) built as an image and pushed it to my ECR repo. I want to use your php-apache example to build my service on AWS. I’ve copied over the cleanup.sh, package* and template file into my development directory/repo.
- Am I correct in assuming I “simply” need to change the default name for AppImage to my image and things will (mostly) work?
Edit: Apparently not. I get a 503 when I do that.
I don’t use nginx so that can be safely removed, right? Do I just delete any references or is there some complexity?
In your examples, the DB username/password is hardcoded in the template file. I assume these and my Laravel .env files should be put into the Secrets service eventually, correct?
More of a workflow question: If my developer builds a local instance, a MySQL database is spun up as well. I know how to have the DB initialized from a mysqldump file, but how are mysqldump files managed? They don’t go into the git repo or an image since there are passwords in there.