fix: 4 additional release-consistency findings
- Disable healthcheck on probe compose services (no HTTP server) - Remove stale "(Phase 4)" comment from dev compose - Add data/ to .gitignore (compose volume creates deploy/data) - Clarify -db-type flag help text (sqlite or postgres)
This commit is contained in:
@@ -25,4 +25,5 @@ authorized_keys
|
|||||||
tmp
|
tmp
|
||||||
*.local.json
|
*.local.json
|
||||||
*.local.md
|
*.local.md
|
||||||
|
data/
|
||||||
.env
|
.env
|
||||||
|
|||||||
+4
-4
@@ -206,7 +206,7 @@ func runApply(args []string) {
|
|||||||
filePath := fs.String("f", "", "Path to YAML config file (required)")
|
filePath := fs.String("f", "", "Path to YAML config file (required)")
|
||||||
dryRun := fs.Bool("dry-run", false, "Show planned changes without applying")
|
dryRun := fs.Bool("dry-run", false, "Show planned changes without applying")
|
||||||
prune := fs.Bool("prune", false, "Delete monitors/alerts not in YAML")
|
prune := fs.Bool("prune", false, "Delete monitors/alerts not in YAML")
|
||||||
dbType := fs.String("db-type", envOrDefault("UPTOP_DB_TYPE", "sqlite"), "Database type")
|
dbType := fs.String("db-type", envOrDefault("UPTOP_DB_TYPE", "sqlite"), "Database type (sqlite or postgres)")
|
||||||
dsn := fs.String("dsn", envOrDefault("UPTOP_DB_DSN", "uptop.db"), "Database DSN")
|
dsn := fs.String("dsn", envOrDefault("UPTOP_DB_DSN", "uptop.db"), "Database DSN")
|
||||||
_ = fs.Parse(args) // ExitOnError: parse errors exit before returning
|
_ = fs.Parse(args) // ExitOnError: parse errors exit before returning
|
||||||
|
|
||||||
@@ -239,7 +239,7 @@ func runApply(args []string) {
|
|||||||
func runExport(args []string) {
|
func runExport(args []string) {
|
||||||
fs := flag.NewFlagSet("export", flag.ExitOnError)
|
fs := flag.NewFlagSet("export", flag.ExitOnError)
|
||||||
outPath := fs.String("o", "-", "Output file path (- for stdout)")
|
outPath := fs.String("o", "-", "Output file path (- for stdout)")
|
||||||
dbType := fs.String("db-type", envOrDefault("UPTOP_DB_TYPE", "sqlite"), "Database type")
|
dbType := fs.String("db-type", envOrDefault("UPTOP_DB_TYPE", "sqlite"), "Database type (sqlite or postgres)")
|
||||||
dsn := fs.String("dsn", envOrDefault("UPTOP_DB_DSN", "uptop.db"), "Database DSN")
|
dsn := fs.String("dsn", envOrDefault("UPTOP_DB_DSN", "uptop.db"), "Database DSN")
|
||||||
_ = fs.Parse(args) // ExitOnError: parse errors exit before returning
|
_ = fs.Parse(args) // ExitOnError: parse errors exit before returning
|
||||||
|
|
||||||
@@ -259,7 +259,7 @@ func runExport(args []string) {
|
|||||||
|
|
||||||
func runMigrateSecrets(args []string) {
|
func runMigrateSecrets(args []string) {
|
||||||
fs := flag.NewFlagSet("migrate-secrets", flag.ExitOnError)
|
fs := flag.NewFlagSet("migrate-secrets", flag.ExitOnError)
|
||||||
dbType := fs.String("db-type", envOrDefault("UPTOP_DB_TYPE", "sqlite"), "Database type")
|
dbType := fs.String("db-type", envOrDefault("UPTOP_DB_TYPE", "sqlite"), "Database type (sqlite or postgres)")
|
||||||
dsn := fs.String("dsn", envOrDefault("UPTOP_DB_DSN", "uptop.db"), "Database DSN")
|
dsn := fs.String("dsn", envOrDefault("UPTOP_DB_DSN", "uptop.db"), "Database DSN")
|
||||||
_ = fs.Parse(args)
|
_ = fs.Parse(args)
|
||||||
|
|
||||||
@@ -351,7 +351,7 @@ func runServe(args []string) {
|
|||||||
|
|
||||||
fs := flag.NewFlagSet("serve", flag.ExitOnError)
|
fs := flag.NewFlagSet("serve", flag.ExitOnError)
|
||||||
port := fs.Int("port", cfg.Port, "SSH Port")
|
port := fs.Int("port", cfg.Port, "SSH Port")
|
||||||
flagDBType := fs.String("db-type", cfg.DBType, "Database type")
|
flagDBType := fs.String("db-type", cfg.DBType, "Database type (sqlite or postgres)")
|
||||||
flagDSN := fs.String("dsn", cfg.DBDSN, "Database DSN")
|
flagDSN := fs.String("dsn", cfg.DBDSN, "Database DSN")
|
||||||
demo := fs.Bool("demo", false, "Seed demo data")
|
demo := fs.Bool("demo", false, "Seed demo data")
|
||||||
importKuma := fs.String("import-kuma", "", "Import Uptime Kuma backup JSON file")
|
importKuma := fs.String("import-kuma", "", "Import Uptime Kuma backup JSON file")
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ services:
|
|||||||
- UPTOP_DB_TYPE=postgres
|
- UPTOP_DB_TYPE=postgres
|
||||||
- UPTOP_DB_DSN=postgres://devuser:devpass@postgres:5432/uptop_dev?sslmode=disable
|
- UPTOP_DB_DSN=postgres://devuser:devpass@postgres:5432/uptop_dev?sslmode=disable
|
||||||
|
|
||||||
# --- Web Server Configuration (Phase 4) ---
|
# --- Web Server Configuration ---
|
||||||
- UPTOP_HTTP_PORT=8080
|
- UPTOP_HTTP_PORT=8080
|
||||||
- UPTOP_STATUS_ENABLED=true
|
- UPTOP_STATUS_ENABLED=true
|
||||||
- UPTOP_STATUS_TITLE=Dev Infrastructure Status
|
- UPTOP_STATUS_TITLE=Dev Infrastructure Status
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ services:
|
|||||||
|
|
||||||
probe-us-east:
|
probe-us-east:
|
||||||
image: lerkolabs/uptop:latest
|
image: lerkolabs/uptop:latest
|
||||||
|
healthcheck:
|
||||||
|
disable: true
|
||||||
environment:
|
environment:
|
||||||
- UPTOP_CLUSTER_MODE=probe
|
- UPTOP_CLUSTER_MODE=probe
|
||||||
- UPTOP_NODE_ID=us-east-1
|
- UPTOP_NODE_ID=us-east-1
|
||||||
@@ -26,6 +28,8 @@ services:
|
|||||||
|
|
||||||
probe-eu-west:
|
probe-eu-west:
|
||||||
image: lerkolabs/uptop:latest
|
image: lerkolabs/uptop:latest
|
||||||
|
healthcheck:
|
||||||
|
disable: true
|
||||||
environment:
|
environment:
|
||||||
- UPTOP_CLUSTER_MODE=probe
|
- UPTOP_CLUSTER_MODE=probe
|
||||||
- UPTOP_NODE_ID=eu-west-1
|
- UPTOP_NODE_ID=eu-west-1
|
||||||
|
|||||||
Reference in New Issue
Block a user