feat: cross-platform setup.sh + auto-dependency install in start.sh
- New setup.sh: interactive YAML configurator for macOS/Linux - Auto-detects Python, SSH key, and K8s namespace via SSH - Generates settings.yaml with Argon2 password hashing - Installs all Python + psycopg[binary] dependencies - start.sh: run_setup now delegates to setup.sh - start.sh: test_dependencies auto-installs pip packages - start_new_dashboard: auto-installs npm + pip deps - Both scripts made executable (chmod +x)
This commit is contained in:
1 parent
21b6a048a1
commit
20f07bbc08
2 files changed
+323
-15
No files matched your search
@@ -374,22 +374,16 @@ print(s.get('server', {}).get('host', 'NOT SET'))
|
||||
|
||||
run_setup() {
|
||||
echo ""
|
||||
echo " Setup is currently only available via the Windows PowerShell launcher."
|
||||
echo " Starting setup..."
|
||||
echo ""
|
||||
echo " To configure the dashboard:"
|
||||
echo " 1. Run setup on a Windows machine: .\launcher.ps1 -> option 2"
|
||||
echo " 2. Or create settings.yaml manually. Copy settings.yaml.example:"
|
||||
echo " cp $PROJECT_ROOT/settings.yaml.example $PROJECT_ROOT/settings.yaml"
|
||||
echo " 3. Edit settings.yaml with your server details:"
|
||||
echo " nano $PROJECT_ROOT/settings.yaml"
|
||||
echo ""
|
||||
echo " Required settings:"
|
||||
echo " - server.host : Game server VM IP"
|
||||
echo " - server.user : SSH username"
|
||||
echo " - server.ssh_key : Path to SSH private key"
|
||||
echo " - database.port : Local port for DB tunnel"
|
||||
echo " - dashboard.port : Web UI port (default 5050)"
|
||||
echo " - kubernetes.namespace : K8s namespace"
|
||||
|
||||
if [ -f "$PROJECT_ROOT/setup.sh" ]; then
|
||||
chmod +x "$PROJECT_ROOT/setup.sh"
|
||||
bash "$PROJECT_ROOT/setup.sh"
|
||||
else
|
||||
echo " [ERROR] setup.sh not found."
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo " Press Enter to return to the main menu..."
|
||||
read -r
|
||||
|
||||
Reference in new issue
Block a user