-
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
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
By default, all webida logs will be logged via syslog, with facilietes local6 and local7. To separate logs from default syslog, you need to configure the syslog daemon on your server. In unbutu server, using rsyslog, copy sample configurations to /etc/rsyslog.d and /etc/logrotate.d
$ cd /home/webida/webida-server/src/system-configs
$ sudo cp -f ./rsyslog-configs/60_webida.conf /etc/rsyslog.d
$ sudo cp -f ./logrotate-configs/webida /etc/logroatate.d
$ sudo restart rsyslog
If you changed log facilities from defaults to others, you have to change the syslog configuration and related logrotate configuration, respecting your conf/log.js