diff --git a/app.json b/app.json index 4c6585324..ba15f1ce4 100644 --- a/app.json +++ b/app.json @@ -17,20 +17,16 @@ "TALK_SMTP_PORT": "2525", "REWRITE_ENV": "TALK_PORT:PORT,TALK_MONGO_URL:MONGO_URI,TALK_REDIS_URL:REDIS_URL,TALK_SMTP_HOST:POSTMARK_SMTP_SERVER,TALK_SMTP_USERNAME:POSTMARK_API_TOKEN,TALK_SMTP_PASSWORD:POSTMARK_API_TOKEN" }, - "addons": [ - { + "addons": [{ "plan": "mongolab:sandbox", "as": "MONGO" - }, - { + }, { "plan": "rediscloud:30", "as": "REDIS" - }, - { + }, { "plan": "postmark:10k", "as": "POSTMARK" - } - ], + }], "image": "heroku/nodejs", "success_url": "/admin/setup" } diff --git a/package.json b/package.json index 7191f51da..4d4aa01bb 100644 --- a/package.json +++ b/package.json @@ -5,15 +5,16 @@ "main": "app.js", "scripts": { "start": "./bin/cli serve --jobs", - "build": "NODE_ENV=production ./node_modules/.bin/webpack --config webpack.config.js --bail", - "build-watch": "NODE_ENV=development ./node_modules/.bin/webpack --config webpack.config.dev.js --watch", - "lint": "./node_modules/.bin/eslint bin/* .", - "lint-fix": "./node_modules/.bin/eslint bin/* . --fix", - "test": "NODE_ENV=test ./node_modules/.bin/mocha --compilers js:babel-core/register tests/helpers/*.js --require ignore-styles --recursive tests", - "test-watch": "NODE_ENV=test ./node_modules/.bin/mocha --compilers js:babel-core/register --recursive -w tests", + "build": "NODE_ENV=production webpack --config webpack.config.js --bail", + "build-watch": "NODE_ENV=development webpack --config webpack.config.dev.js --watch", + "lint": "eslint bin/* .", + "lint-fix": "eslint bin/* . --fix", + "test": "NODE_ENV=test mocha --compilers js:babel-core/register tests/helpers/*.js --require ignore-styles --recursive tests", + "test-watch": "NODE_ENV=test mocha --compilers js:babel-core/register --recursive -w tests", "pree2e": "NODE_ENV=test scripts/pree2e.sh", "e2e": "NODE_ENV=test nightwatch", - "embed-start": "NODE_ENV=development npm run build && ./bin/cli serve --jobs" + "embed-start": "NODE_ENV=development npm run build && ./bin/cli serve --jobs", + "postinstall": "npm run build" }, "config": { "pre-git": {