AWS Elastic beantalk中相同环境中的Node.js和php [英] Nodejs and php in same environment in aws Elastic beanstalk

查看:108
本文介绍了AWS Elastic beantalk中相同环境中的Node.js和php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个同时具有nodejs和php代码的应用程序. nodejs用于运行应用程序所需的多个脚本.如何使用AWS Elastic beantalk部署此类应用程序?

I have a application where I have both nodejs and php codes. nodejs is used to run several scripts required by the application. How do i deploy such application using aws Elastic beanstalk?

推荐答案

有两种方法可以实现

Amazon Beanstalk推荐的方法1:

Amazon Beanstalk recommended way#1:

  • 使用配置文件安装nodejs.配置文件脚本 将在Beanstalk EC2实例启动期间执行.
  • Use Configuration File to install nodejs. Configuration File scripts will be executed during Beanstalk EC2 instances start up.

传统方式2:

  • 自定义Elastic Beanstalk AMI以安装nodejs并填充您的 Beanstalk环境设置中的自定义AMI ID.
  • Customizing an Elastic Beanstalk AMI to install nodejs and fill your Custom AMI ID in Beanstalk Environment Setting.

参考文献:

1.自定义和配置AWS Elastic Beanstalk环境

2.使用自定义AMI

这篇关于AWS Elastic beantalk中相同环境中的Node.js和php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆