A simple tool to manage server tasks.
This is designed for my Linux server running Plex Media Server. It uses the command uptime
, shutdown
, and systemd
. This should be run from a user that has the privilege to run all of these commands without a password. There are probably horrible things going on in terms of security, but I will only run this on a local network so ¯\_(ツ)_/¯
Configure which port to run on in server.js
. This defaults to 80
. You will likely need to open that port in your firewall.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# install dependencies
npm install
# build for production with minification
npm run build
# serve frontend throut server
npm run serve
For detailed explanation on how things work, checkout the guide and docs for vue-loader.
If you want to run this from systemd:
# install dependencies
npm install -g forever service-systemd
Edit service.json
to fit your needs.
# install the service
sudo node-systemd add service.json
# start the serive
sudo service server-admin start
# stop the serive
sudo service server-admin stop
# restart the serive
sudo service server-admin restart
Follow the instructions in the documentation to learn more.