1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Check working dir

This commit is contained in:
Tim Düsterhus 2012-05-04 15:35:06 +02:00
parent 708df74673
commit abc9af1c32

View File

@ -20,6 +20,9 @@ log = (message) ->
class Server class Server
constructor: () -> 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 'Starting Pushserver for Tims Chat'
log 'PID is ' + process.pid log 'PID is ' + process.pid
log 'Using port: ' + config.port log 'Using port: ' + config.port