node.js - Error when use forever in sails -
i'm newbie in sails. found error when run sails app using 'forever start app.js --prod'
my style broken , there 1 error in console,
websocket connection 'ws://192.168.1.191/socket.io/?__sails_io_sdk_version=0.11.0&__sails_io_sdk_platform=browser&__sails_io_sdk_language=javascript&eio=3&transport=websocket&sid=hfy1tk_-48eqbviyaaae' failed: error during websocket handshake: unexpected response code: 400
but when run sails 'sails lift', work. , if disable grunt put
{ "hooks": { "grunt": false } }
in .sailsrc file, work too.
i don't know how run sails forever without disable grunt. need help. thanks.
as sailsrc, not build / compressed static file in production mode.
please try steps,
grunt build prod forever start app.js --prod
Comments
Post a Comment