-
Notifications
You must be signed in to change notification settings - Fork 16
You can simply run all servers with following command.
$ cd /home/weibida/webida-server/src/server
$ sudo -u webida node unit-manager.js
Connect to http://your.ip:5001/ with latest chrome or firefox
unit-manager.js loads configuration file and run all server instance which specified in the configuration file. In other words, all server runs in single process. and you can see all server's log in single log file, nimbus.log
If you want to run each server as different process, you can specify the server instance name as "svc" when you run server as follow.
$ sudo -u webida node unit-manager.js svc=auth0
"auth0" is instance name of service that specified in conf.js in src/server/conf directory. We recommendd you not change the name of each service instances.
As a sane operator, you may want to run/stop webida server after/before booting/shutting-down your system & want to respawn server process(es) on accidental crash. There are some sample upstart configuration files to install, in src/system-configs/upstart-configs/
To run the webida server in single, all-in-one process, edit webida.conf & copy it to /etc/init directory. For service-per-process mode, edit & copy files in src/system-configs/upstart-configs/units (You can't install both of them in a same host). Be sure to have right configuration, enabled reverse proxy & proxy unit in webdia server configuration file.
Finally, as for other upstart jobs, you should run initctl to apply new configuration scripts.
$ sudo /sbin/initctl reload-configuration