Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29250

Deploying an nodejs app to EC2 and update methods

$
0
0

So I have a node js app I would like to deploy to EC2.

I'm planning on creating multiple instances of it and put it beyond Nginx for load balancing.

I know I can use AWS Beanstalk but I think it's over provisioning stuff I don't need.

My question is about the app update process. I thought of two options.

The first one is to create a bare git repository on the EC2 and every time I push some changes, it will hook into the after receive event, create new instances of the app and update Nginx to switch to the new instances.

Another option is to work with Amazon ECR and containers. Every time I update my app image at ECR, it will send an event to the EC2 machine (I'm not sure it is even possiable) to create new instances of the app and again, tell the Nginx to switch.

Which one do you think is preferred?


Viewing all articles
Browse latest Browse all 29250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>