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