#!/usr/bin/env bash
# ------------------------------------------------------------------
#  IncrelogEMS - Linux launcher (auto-restart enabled).
#
#  Run from this folder:
#      bash start-server.sh
#  or make it executable first:
#      chmod +x start-server.sh && ./start-server.sh
#
#  Keeps the server running: if it crashes, it restarts
#  automatically (npm run serve -> scripts/serve.js supervisor).
#  Stop with Ctrl+C.
# ------------------------------------------------------------------
cd "$(dirname "$0")" || exit 1
echo "Starting IncrelogEMS (auto-restart enabled)..."
npm run serve
