Open modder2 opened 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.
@fippo One command to run is:
$ NODE_ENV=production node prod/server.js
And other is:
$ NODE_ENV=development node dev/server.js
Right?
yes. You would have different ports in config/development.json and config/production.json respectively
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.