Code to deploy Reaction Commerce on AWS Elastic Beanstalk. This is early stage so there may be issues. Please let me know if you have ideas to make this work better especially for the nginx setup.
How To: Deploy Reaction Commerce on AWS Elastic Beanstalk.
The repo files have changed slightly, some files have been added that aren't described in the user guide. This is mainly to support WebSockets.
-
ROOT_URL
-
MONGO_URL
-
REACTION EMAIL, USER & AUTH
-
For custom deployments, change FROM yourdockeraccount/yourdockerimage:yourtag
- For custom deployments, change 'Name'field to yourdockeraccount/yourdockerimage:yourtag
- Replace all occurences of yourdomain.com with your domain
- Replace arn:aws:acm:us-east-1:xxxxxxxxxxxxxxx:certificate/xxxxxxxxxxxxxxxxxxxx with your ACM Certificate code.
- In AWS Search 'Certificate' > Certificate Manager > Expand Your domain name using the arrow > Copy the 'ARN' code
If you are on mac, open terminal in your directory an run ./maczip to create a zip for elastic beanstalk otherwise your zip file may cause EB to fail.