simplewebrtc / signalmaster

simple socket.io server for webrtc signaling
Other
1.31k stars 486 forks source link

How to deploy on Heroku? #128

Open Zythyr opened 6 years ago

Zythyr commented 6 years ago

I am trying to the run the signalmaster on Heroku free version for development testing.

After generating the SSL certs, I removed the *.pem from .gitignore and pushed to Heroku app. When I do heroku logs it clearly shows the build was successful and also shows a port number. However, when I go to the actual URL (ex: https://immense-chamber-12345.herokuapp.com:49368/socket.io) the page does NOT load.

2018-04-14T07:24:32.000000+00:00 app[api]: Build started by user 2dc8a73e@emailna.co
2018-04-14T07:24:43.657899+00:00 app[api]: Release v10 created by user 2dc8a73e@emailna.co
2018-04-14T07:24:43.657899+00:00 app[api]: Deploy 490d85e4 by user 2dc8a73e@emailna.co
2018-04-14T07:24:43.962863+00:00 heroku[web.1]: Restarting
2018-04-14T07:24:43.963523+00:00 heroku[web.1]: State changed from up to starting
2018-04-14T07:24:32.000000+00:00 app[api]: Build succeeded
2018-04-14T07:24:45.157610+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2018-04-14T07:24:45.258995+00:00 heroku[web.1]: Process exited with status 143
2018-04-14T07:24:46.700656+00:00 heroku[web.1]: Starting process with command `node server.js`
2018-04-14T07:24:49.010116+00:00 app[web.1]: &yet -- signal master is running at: https://localhost:49368
2018-04-14T07:24:49.584628+00:00 heroku[web.1]: State changed from starting to up 

On my local machine, when I go to http://localhost:8888/socket.io, everything works fine.

Is there some issue with SSL? According to this module, it says Heroku blocks the SSL. https://www.npmjs.com/package/force-ssl-heroku