Supervisor manager in node.js
- Node.js
- Supervisord
- NPM
-
Clone the git repository into a folder and run:
npm install
-
Run the database scripts provided in the sql folder on whichever MySql server you want to use.
-
Update the config.js file with your database connection details and database name.
Run the app using:
node app
-
After the app has started, navigate to the machine in a browser on port 3000. For instance: http://localhost:3000
-
Log in using the default credentials of:
- Email: admin@nodervisor
- Password: admin
</ul>
-
Navigate to the users page using the top menu. Change the admin credentials or add a new user and remove them.
-
Navigate to the hosts page using the top menu. Then add a host running supervisord using the form. Your supervisord config on each host should be set up to allow the xmlrpc interface over a inet port.
At this point, navigating back to the home page should show you a list of your hosts, and the processes running on them.
####Todo
- Allow user to reset own password
- Log Start/Stop/Restart/Deletes of hosts with relevant user