mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-05-27 00:55:18 +00:00
feat: add manage.sh helper script for setup and management
Interactive setup: checks Docker, creates config, prompts for domain, validates DNS, builds and runs the container. Commands: setup, start, stop, restart, status, logs, update, backup, restore, mqtt-test. Colored output, error handling, confirmations for destructive operations. Updated DEPLOYMENT.md to show manage.sh as the primary quick start.
This commit is contained in:
@@ -80,6 +80,28 @@ docker --version
|
||||
|
||||
## Quick Start
|
||||
|
||||
The easiest way — use the management script:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Kpa-clawbot/meshcore-analyzer.git
|
||||
cd meshcore-analyzer
|
||||
./manage.sh setup
|
||||
```
|
||||
|
||||
It walks you through everything: checks Docker, creates config, asks for your domain, checks DNS, builds, and starts.
|
||||
|
||||
After setup, manage with:
|
||||
```bash
|
||||
./manage.sh status # Check if everything's running
|
||||
./manage.sh logs # View logs
|
||||
./manage.sh backup # Backup the database
|
||||
./manage.sh update # Pull latest + rebuild + restart
|
||||
./manage.sh mqtt-test # Check if MQTT data is flowing
|
||||
./manage.sh help # All commands
|
||||
```
|
||||
|
||||
### Manual setup
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
A[Clone repo] --> B[Create config] --> C[Create Caddyfile] --> D[Build & run] --> E[Open site]
|
||||
|
||||
Reference in New Issue
Block a user