Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Neewd's avatar
Level 1

Deploy Laravel / Vue SPA on AWS

Hello everyone,

I am currently working on a Laravel + Vue SPA where backend and frontend are in the same repository. I would like to use AWS for my production deploymennt but I don't find any tutorial or walkthrough on how to do it ?

For the Laravel I could use a Beanstalk EC2 but how to serve the Vue static files in order to combine both framework ?

When the back and the front are separated we have to upload the front on a S3 bucket and the Backend API on the Beanstalk but where they're combined in one repository I don't know how do this ?

Any help could be really helpful :)

Thanks guys

0 likes
8 replies
bugsysha's avatar

Investing few bucks per month into tool like Laravel Forge will help you save enormous amounts of time so it is well worth it. And then you just click deploy or enable auto deploy which will do it's thing each time you push to a defined branch.

Neewd's avatar
Level 1

Does Forge handle full AWS architecture, I was thinking it was more Vaporr for AWS no ?

bugsysha's avatar

Not sure if I know what is full AWS architecture but you should be fine with it. Also Vapor is great, but I suggested Forge cause it is cheaper since you didn't mention anything about paying for such a service.

1 like
jlrdw's avatar

A lot has to do with what server architecture you are wanting.

Neewd's avatar
Level 1

RDS for Database, Beanstalk for Laravel and I would have guessed that S3 could handle the Vue part. But actually considering that the front (Vue) and the back with Laravel are in the same github repository, how we could handle this kind of architecture ?

dcx's avatar

For Laravel/vue with AWS i recommend https://ploi.io/ nice and simple unless you really want to learn AWS directly..

Please or to participate in this conversation.