simplewebrtc / signalmaster

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

Heroku: Run on port dictated by heroku #19

Closed smessmer closed 10 years ago

smessmer commented 10 years ago

When running on heroku, we're not free to choose our own port. Heroku sets an environment variable telling us which port to use.

This commit looks for this environment variable and uses it in case.

This makes signalmaster run well on heroku (for me at least).

lukekarrys commented 10 years ago

Thanks for the PR! This has been addressed by d6feaee1728735534304c572b6fff952503f74fa.