From 5f0a3dcb635b25ca8056caa74f900cfb8896c538 Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 10 Jan 2015 03:20:34 +0100 Subject: [PATCH] use postinstall script instead of Procfile https://docs.npmjs.com/misc/scripts --- Procfile | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Procfile b/Procfile index 7778d31..e8f79ea 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: cp "modules/config.example.js" "modules/config.js" && npm start \ No newline at end of file +web: npm start \ No newline at end of file diff --git a/package.json b/package.json index 12da852..af3969f 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "avatar" ], "scripts": { + "postinstall": "cp 'modules/config.example.js' 'modules/config.js'", "start": "node bin/www.js", "test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" },