simplewebrtc / signalmaster

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

Can I run two signal servers in one operating system? #50

Open modder2 opened 8 years ago

modder2 commented 8 years ago

Can I run two signal servers (one for production version and one for development version) in one server (operating system)? And how can I do this? Thanks.

fippo commented 8 years ago

running them on different ports (config.server.port) is probably the easiest way to accomplish this. Even though you just run a production server and use it from your dev/staging environment. The only caveat is that room names would be shared.

modder2 commented 8 years ago

@fippo One command to run is:

$ NODE_ENV=production node prod/server.js

And other is:

$ NODE_ENV=development node dev/server.js

Right?

fippo commented 8 years ago

yes. You would have different ports in config/development.json and config/production.json respectively