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:
parent
708df74673
commit
abc9af1c32
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user