diff --git a/manifest.yml b/manifest.yml index eed8477f0..58c14e5df 100644 --- a/manifest.yml +++ b/manifest.yml @@ -2,7 +2,7 @@ applications: - name: paas-hackmd instances: 1 - memory: 2G + memory: 6G buildpack: nodejs_buildpack env: PGSSLMODE: require diff --git a/package.json b/package.json index abc845ca1..bf7a13976 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' | while read json; do echo $json ; jq . $json; done", "standard": "node ./node_modules/standard/bin/cmd.js", "dev": "webpack --config webpack.config.js --progress --colors --watch", - "build": "webpack --config webpack.production.js --progress --colors --bail", + "build": "node --max-old-space-size=6144 node_modules/webpack/bin/webpack.js --config webpack.production.js --progress --colors --bail", "postinstall": "npm run build", "start": "node app.js", "doctoc": "doctoc --title='# Table of Contents' README.md"