w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Deploy node application on an existing EC2 instance rather than elastic beanstalk instance

Elastic Beanstalk deployment is very specific to the service.

You can conceivable hack the eb scripts to make it work for your EC2 instance. You can look at the AWSDevTools/aws.elasticbeanstalk.push file that the eb command creates under the .git directory. It's essentially a Ruby script that does the git push.

You can could also look at the eb script and libraries themselves which are essentially written in Python.

Nevertheless, I recommend to stick to just a plain node.js deployment model that has been answered here on SO on some other posts and Internet blogs. For example: How to deploy a Node.js application?

You can also take a look at this blog too (which is referred from the previous SO post)


© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.