简体   繁体   中英

How to deploy the app to AWS

This is a very beginner level question. I want some directions. I've created a MEAN based app. It works locally (localhost) . the structure is :

在此处输入图片说明

app.js is the node server. models has the mongo schemas. public has index.html, css folder and js folder. I'm using angularjs . The app is going to upload images so I'll use the AWS S3 storage. Also using mongo for db.

My questions:

  1. How do I pack this with Phonegap to create it a hybrid app?
  2. Should I host on EC2 or Elastic Beanstalk?

For Phonegap use their Cloud Build service which is more convenient in the long run when you support multiple mobile platforms.

Use Beanstalk for server environment. It will simplify the deployment providing you with gui options for autoscaling and loadbalancing configuration and greatly simplify deployment and rollbacks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM