hack.chat
hack.chat copied to clipboard
Getting SyntaxError while node server.js
[root@server hack.chat-master]# node server.js
SyntaxError: Unexpected token . in JSON at position 116
at Object.parse (native)
at loadConfig (/root/hack/hack.chat-master/server.js:13:17)
at Object.port or a server must be provided');
^
TypeError: port or a server must be provided
at new WebSocketServer (/root/hack/hack.chat-master/node_modules/ws/lib/WebSocketServer.js:39:11)
at Object.
Have you copied config-sample.json to config.json?
yup! http://i.imgur.com/s4JGyiy.png
The host value should either be 127.0.0.1 or 0.0.0.0 in almost all cases so why is it censored? And it doesn't look like you put quotes around the value.
thank you! Andrew for helping me out! it worked! and one more thing! if i close my ssh the service will be closed and i want it to be running if the ssh is closed!
And i wanna DNS srv properly for hack.chat to work in on my domain! and ssl as well!
thank you!
@NoorQureshi in reference to the ssh issue; personally I prefer pm2 ( http://pm2.keymetrics.io/ ) for my Node services.
you mixed that up use [label](url) NOT [url](label)
so heres a working link: keymetrics