- 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>
19 lines
389 B
Bash
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" |