Skip to content

himanshu-DLTech/serverSetup

Repository files navigation

Server Setup Script

This repository provides a shell script (serverSetup.sh) to set up a Monkshu-based product server.

Version to use

You can use the following versions

📌 Prerequisites

  • Ubuntu/Debian-based Linux system
  • sudo access
  • Internet connection

⚙️ Environment Variables

Create a .env file in the same directory as the script with the following variables:

APP_NAME=myApp
APP_USER=myuser

🚀 Usage

Run the script with root privileges:

sudo ./serverSetup.sh

After manual configuration, you can finalize the setup with:

sudo ./serverSetup.sh --final

🛠 Features

  • Installs required dependencies (Node.js, npm, Java, Tesseract OCR, etc.)
  • Clones necessary repositories (crashguard, monkshu, xforge, and your product)
  • Configures process.json and monkshu.service
  • Sets up SSL certificates via Certbot
  • Finalizes server setup with systemctl

📂 Repository Structure

serverSetup.sh
.env (to be created)
process.json.template
monkshu.service.template

⚠️ Manual Configuration

Some steps (like configuring Monkshu, Xforge, and your app) must be done manually before re-running the script with --final.

🎉 Completion

Once everything is configured and finalized, the service will be enabled and started automatically.

🧪 Test

Visit your deployed app via the domain or IP you've configured.

About

This setup automates the environment preparation and deployment of any Monkshu-based web application (like `neuranet`) on a fresh Linux VM.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages