Add Elastic Beanstalk config

This commit is contained in:
Alan Friedman 2017-11-17 06:33:23 -05:00
parent a4854209db
commit 9e70817696
3 changed files with 20 additions and 6 deletions

View File

@ -9,6 +9,12 @@ files:
keepalive 256;
}
server {
listen 80;
return 301 https://$host$request_uri;
}
server {
listen 8080;

6
.ebignore Normal file
View File

@ -0,0 +1,6 @@
node_modules/
.DS_STORE
# Elastic Beanstalk Files
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml

View File

@ -21,12 +21,12 @@
"slug": "^0.9.1",
"socket.io": "^1.4.0",
"underscore": "^1.8.3",
"uuid": "^2.0.1"
},
"devDependencies": {
"uuid": "^2.0.1",
"babel-core": "^6.5.2",
"babel-preset-es2015": "^6.3.13",
"babel-register": "^6.5.2",
"babel-register": "^6.5.2"
},
"devDependencies": {
"compression": "^1.6.0",
"gulp": "^3.9.1",
"gulp-nodemon": "^2.0.6",
@ -50,11 +50,13 @@
},
"scripts": {
"start": "node index.js",
"prod": "npm run bundle && npm run start",
"prod": "npm run start",
"dev": "npm run bundle && gulp start",
"bundle": "gulp bundle",
"test": "npm run bundle && gulp test",
"test-travis": "node_modules/mocha/bin/mocha test/unit/lint.js --compilers js:babel-core/register && node_modules/karma/bin/karma start --single-run && node_modules/nightwatch/bin/nightwatch --test test/acceptance/index.js --config test/acceptance/nightwatch.json -e chrome"
"test-travis": "node_modules/mocha/bin/mocha test/unit/lint.js --compilers js:babel-core/register && node_modules/karma/bin/karma start --single-run && node_modules/nightwatch/bin/nightwatch --test test/acceptance/index.js --config test/acceptance/nightwatch.json -e chrome",
"predeploy": "npm run bundle",
"deploy": "eb deploy --staged"
},
"author": "Daniel Seripap",
"license": "MIT"