简体   繁体   English

如何将应用程序部署到AWS

[英]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. 我创建了一个基于MEAN的应用程序。 It works locally (localhost) . 它在本地(localhost) the structure is : 结构是:

在此处输入图片说明

app.js is the node server. app.js是节点服务器。 models has the mongo schemas. models具有mongo模式。 public has index.html, css folder and js folder. public有index.html,css文件夹和js文件夹。 I'm using angularjs . 我正在使用angularjs The app is going to upload images so I'll use the AWS S3 storage. 该应用程序将上传图像,因此我将使用AWS S3存储。 Also using mongo for db. 还对数据库使用mongo。

My questions: 我的问题:

  1. How do I pack this with Phonegap to create it a hybrid app? 如何将其与Phonegap打包在一起以创建混合应用程序?
  2. Should I host on EC2 or Elastic Beanstalk? 我应该在EC2或Elastic Beanstalk上托管吗?

For Phonegap use their Cloud Build service which is more convenient in the long run when you support multiple mobile platforms. 对于Phonegap,请使用其Cloud Build服务,从长远来看,当您支持多个移动平台时,它将更加方便。

Use Beanstalk for server environment. 将Beanstalk用于服务器环境。 It will simplify the deployment providing you with gui options for autoscaling and loadbalancing configuration and greatly simplify deployment and rollbacks 它将简化部署,为您提供用于自动扩展和负载平衡配置的gui选项,并大大简化部署和回滚

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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