From abc9af1c32d0bbd9b42ed770201e036905222e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 4 May 2012 15:35:06 +0200 Subject: [PATCH] Check working dir --- file/acp/be.bastelstu.wcf.chat.nodePush/lib/server.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/file/acp/be.bastelstu.wcf.chat.nodePush/lib/server.coffee b/file/acp/be.bastelstu.wcf.chat.nodePush/lib/server.coffee index 868302d..1360bdb 100644 --- a/file/acp/be.bastelstu.wcf.chat.nodePush/lib/server.coffee +++ b/file/acp/be.bastelstu.wcf.chat.nodePush/lib/server.coffee @@ -20,6 +20,9 @@ log = (message) -> class Server constructor: () -> + if process.cwd().substring(process.cwd().length - 3) isnt 'lib' + console.error 'Please run me via bin/run.sh' + process.exit 1 log 'Starting Pushserver for Tims Chat' log 'PID is ' + process.pid log 'Using port: ' + config.port