Deploying Laravel/Vue Project to AWS Elastic Beanstalk
Does anyone have experience with deploying to AWS EB?
I have successfully deployed Laravel/Tailwind projects but I can't get config correct for deployment with Vue. As of now the project loads and displays Laravel + Tailwind components but Vue components are not rendered.
I realize the complexity of my question as AWS can be tricky so any help (even AWS Docs referral) is appreciated.
It seems to take me days, not hours when it comes to AWS deployment.
Do you run npm build after deployment, or you have build step before deployment.
But to try to help, you should have NPM installed on elasticbeanstalk instances.
You do this using ebextensions and putting config scripts in there.
These scripts will then install NPM and or whatever else you need.
By default, ElasticBeanstalk has composer installed. And issues composer install automatically if there is composer.json and VENDOR dir is not present.
NPM is not bundled out of the box. So you'll need to install it. Or have Vue components compiled before deployment.
I did successfully deploy with compiled assets. And then I ran into DB issues. I've since signed up for Forge and have done the same and also have DB connectivity.
I'm down to SSL which I am currently awaiting AWS certificate for.
Thanks again! I will revisit EB deployments via CLI in the future!
Forge provisions an AWS EC2 Instance. You are correct, the instance is not stored as an Elastic Beanstalk application.
With specific regards to EB and DB connectivity - it once again falls back to .ebextensions/configuration as I was failing to migrate and simply create the Users table.
My attempts to utilize .config settings were failing.