Skip to content

Instantly share code, notes, and snippets.

@risul
Forked from krishamoud/app.config
Created February 23, 2016 22:25
Show Gist options
  • Save risul/e2649a2af1de3e8bfda8 to your computer and use it in GitHub Desktop.
Save risul/e2649a2af1de3e8bfda8 to your computer and use it in GitHub Desktop.
Deploy Meteor onto Elastic Beanstalk
option_settings:
- option_name: AWS_SECRET_KEY
value: -------------------------------------------
- option_name: AWS_ACCESS_KEY_ID
value: ------------------------------
- option_name: PORT
value: 8081
- option_name: MONGO_URL
value: mongodb://user:password@endpoint:27017/db
- namespace: aws:elasticbeanstalk:container:nodejs
option_name: ProxyServer
value: nginx
- namespace: aws:elasticbeanstalk:container:nodejs:staticfiles
option_name: /public
value: /public
Bundling commands:
meteor bundle bundle.tgz
mv bundle.tgz ..
cd ..
tar -zxvf bundle.tgz
sudo cp -a bundle/. ../<project_name>-production/bundle/
cd bundle
rm -rf programs/server/node_modules/fibers/
{
"name": "appName",
"version": "0.0.1",
"scripts": {
"start": "node main.js"
},
"dependencies": {
"fibers": "1.0.1",
"forever": "*"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment