feat: add systemd service template and installer for production 1.3.1

This commit is contained in:
Daniel Bedeleanu
2026-04-11 12:39:38 +03:00
parent 2e5ce8d153
commit d87067e88c
4 changed files with 130 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ rsync -a --exclude '__pycache__' --exclude '.pytest_cache' --exclude '.venv' bac
cp docker-compose.yml "$PROD_DIR/"
cp Caddyfile "$PROD_DIR/"
cp start_server.sh "$PROD_DIR/"
cp install_service.sh "$PROD_DIR/"
cp inventory.service.template "$PROD_DIR/"
cp .git_path "$PROD_DIR/" 2>/dev/null || true
cp VERSION.json "$PROD_DIR/"
@@ -41,6 +43,10 @@ TO RUN VIA DOCKER (Recommended):
3. Run: docker-compose up -d
4. Access via https://<YOUR-IP>:3003 (Accept the internal security warning).
TO INSTALL AS A LINUX SYSTEM SERVICE (Optional):
1. sudo ./install_service.sh
2. sudo systemctl start inventory
TO RUN BARE-METAL (No Docker):
1. Install Python 3.12+ and Node.js 20+.
2. Ensure you have network access for npm installs.