How do I effectively deploy a full stack Ruby and JS app on AWS?

October 31, 2025 2 answers
Asked by CloudyDreamz97
I'm new to AWS and trying to deploy a full stack Ruby on Rails app paired with a JavaScript frontend using Elastic Beanstalk, and it's proving to be more complicated than I had anticipated. Can I just upload the app as a zipped bundle within a single application, or should I create separate applications for the backend and frontend? Any tips or general advice would be greatly appreciated since I'm venturing into this for the first time. Thanks!

Answers

TechWizKid
Have you considered why you chose Elastic Beanstalk? These days, I recommend using containers on ECS instead. It's generally easier to build and test your applications before deployment, and I'm finding EB's claims of 'one-click deploy' donโ€™t really hold up.

RubyFanatic88: Honestly, I fell for the marketing too! So, would you say itโ€™s worth the effort to dockerize my app for ECS instead? What are the cost implications?

Reply to this answer
CloudHopper99
Definitely go with ECS Fargate in front of an ALB. Containerizing your app, pushing it to ECR, and then running a Fargate task is straightforward. Plus, you can use something like Terraform or AWS CDK to manage your infrastructureโ€”super handy for modification and reusability!

DevAdventurer: I wish it were that easy! I spent a whole week just getting a couple of ECS containers to work alongside setting up everything else like the load balancer and databases. EBโ€™s approach is definitely tempting.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions