Nodejs and php in same environment in aws Elastic

2019-05-11 04:58发布

问题:

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?

回答1:

There are two ways to accomplish

Amazon Beanstalk recommended way#1:

  • Use Configuration File to install nodejs. Configuration File scripts will be executed during Beanstalk EC2 instances start up.

Legacy way#2:

  • Customizing an Elastic Beanstalk AMI to install nodejs and fill your Custom AMI ID in Beanstalk Environment Setting.

References:

1.Customizing and Configuring AWS Elastic Beanstalk Environments

2.Using Custom AMIs