r/SpringBoot • u/Dull_Specific_6496 • Aug 03 '24
Deploying of a spring boot &angular app
Hi I created a spring boot & angular application with mysql as a database and i want to learn how to deploy it. Is there any videos or articles I can follow because honestly i do not have any idea where to start from
24
Upvotes
2
u/MoreCowbellMofo Aug 03 '24
I did it by following this but it took me abt a week to get together all the relevant config for it to work as I have no idea abt vpcs https://spacelift.io/blog/terraform-ecs
Looking at it now I probably didn’t copy it correctly as I already had one part deployed to an ec2 instance that was publically visible but wanted ecs clusters that run on ec2 instances.
The cost is abt $15/month but it means if I need to scale I can do so easily.
My angular app has nginx in front of it but I’m not entirely sure how necessary it is. The spring boot back end is a separate task definition that’s run by the ecs service (which is what keeps the task up if it fails for any reason).