This repository provides a shell script (serverSetup.sh) to set up a Monkshu-based product server.
You can use the following versions
- Ubuntu/Debian-based Linux system
sudoaccess- Internet connection
Create a .env file in the same directory as the script with the following variables:
APP_NAME=myApp
APP_USER=myuserRun the script with root privileges:
sudo ./serverSetup.shAfter manual configuration, you can finalize the setup with:
sudo ./serverSetup.sh --final- Installs required dependencies (Node.js, npm, Java, Tesseract OCR, etc.)
- Clones necessary repositories (
crashguard,monkshu,xforge, and your product) - Configures
process.jsonandmonkshu.service - Sets up SSL certificates via Certbot
- Finalizes server setup with
systemctl
serverSetup.sh
.env (to be created)
process.json.template
monkshu.service.template
Some steps (like configuring Monkshu, Xforge, and your app) must be done manually before re-running the script with --final.
Once everything is configured and finalized, the service will be enabled and started automatically.
Visit your deployed app via the domain or IP you've configured.