diff --git a/.ebextensions/proxy.config b/.ebextensions/proxy.config index 11070a6..3983091 100644 --- a/.ebextensions/proxy.config +++ b/.ebextensions/proxy.config @@ -9,6 +9,12 @@ files: keepalive 256; } + server { + listen 80; + + return 301 https://$host$request_uri; + } + server { listen 8080; diff --git a/.ebignore b/.ebignore new file mode 100644 index 0000000..e09f477 --- /dev/null +++ b/.ebignore @@ -0,0 +1,6 @@ +node_modules/ +.DS_STORE +# Elastic Beanstalk Files +.elasticbeanstalk/* +!.elasticbeanstalk/*.cfg.yml +!.elasticbeanstalk/*.global.yml \ No newline at end of file diff --git a/package.json b/package.json index 79837f9..f38116e 100644 --- a/package.json +++ b/package.json @@ -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"