How to deploy Node.js app to the AWS Elastic Beanstalk
How to upload Node.js App to Elastic Beanstalk
Following shows how to deploy a Node.js app to AWS Elastic Beanstalk.
Create Amazon AWS account
To register to Amazon AWS is free, so the first is you have to do is create a AWS account, and up to a year you can use AWS as free trial.
AWS free trial is not unlimit, so be aware of not creating too many Instance of Elastic Beanstalk.
Create New Application at Elastic Beanstalk
After you AWS account, go to Elastic Beanstalk and create New application.
At the Select environment tire, Choose Web server environment.
At the base configuration, choose platform as node.js.
Upload Node.js application to Elastic Beanstalk
Once you upload the aws-deploy.zip to the Elastic Beanstalk, AWS Elastic Beanstalk will start build solution and deploy to AWS server.
The important thing for AWS Elastic Beanstalk to build and deploy your node.js app is this nodecommand.config file. NodeCommand will tell AWS what command will run when you upload your code. At my sample code, it'll run
Verify Node.js application Running at AWS Elastic Beanstalk
Click the url of the site, if site is not up, go to the Logs and check the log to see what's error message had logged. That'll help you to troubleshoot your issue.
Now, you know you can simple upload your node.js app to Elastic Beanstalk and to be hosted.
- Get Start with PhoneGap(Adobe) To build mobile apps
- Deploy mobile app to Google Play Store - Xamarin
- Start Use Gulp, Browserify to build angular app on node.js
- How to deploy Node.js app to the AWS Elastic Beanstalk
- Angular example application
- Get Start with in Xamarin for iOS Android and Windows App
- Create your first iPhone app
- node.js tools for Visual Studio Debug
- Deploy Asp.net Web App
- object - c : Create Quiz App(NSMutableArrary)