immersive2/start.sh
Michael Mainguy e2216c17e8
Some checks failed
Build and Deploy / build (push) Failing after 1m44s
Node.js CI / build (push) Has been cancelled
Add Alpine Linux service setup and CI/CD deployment
- Add ALPINE_SERVICE.md with full setup instructions
- Add start.sh script for OpenRC service
- Update build.yml for deployment to /opt/immersive
- Configure proper permissions for immersive user
- Add Gitea runner setup instructions with sudo config
- Add .env.production to gitignore

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 09:21:08 -06:00

19 lines
389 B
Bash

#!/bin/sh
# Immersive start script for Alpine Linux
APP_DIR="/opt/immersive"
LOG_DIR="/var/log/immersive"
PID_FILE="/var/run/immersive.pid"
cd "$APP_DIR"
# Environment
export NODE_ENV=production
export NODE_OPTIONS="--max-old-space-size=2048"
# Optional: Set port (default 3001)
# export PORT=3001
# Start the server
exec node server.js >> "$LOG_DIR/app.log" 2>> "$LOG_DIR/error.log"