make: up-core/deploy-core — App + Postgres ohne Geo starten
Ermöglicht Deploy ohne OSRM/Nominatim (deren Preprocessing/Import viel RAM braucht; Austria-Extrakt OOM-te beim osrm-extract). App läuft mit Haversine-Fallback; Geo später via 'make data' + 'make up' nachziehen. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
10
Makefile
10
Makefile
@@ -117,13 +117,16 @@ setup: install env db-up db-wait migrate seed-all ## Komplettes lokales Setup vo
|
|||||||
|
|
||||||
# --- Deployment (externes Traefik; braucht Docker) -----------------------
|
# --- Deployment (externes Traefik; braucht Docker) -----------------------
|
||||||
# Externes Netz muss existieren: docker network create frontend
|
# Externes Netz muss existieren: docker network create frontend
|
||||||
.PHONY: build up down logs ps deploy migrate-stack data config
|
.PHONY: build up up-core down logs ps deploy deploy-core migrate-stack data config
|
||||||
build: ## App-Image bauen (Next.js standalone, non-root)
|
build: ## App-Image bauen (Next.js standalone, non-root)
|
||||||
$(COMPOSE) build app
|
$(COMPOSE) build app
|
||||||
|
|
||||||
up: ## Stack starten (App + Postgres + Geo) hinter Traefik
|
up: ## Stack starten (App + Postgres + Geo) hinter Traefik
|
||||||
$(COMPOSE) up -d
|
$(COMPOSE) up -d
|
||||||
|
|
||||||
|
up-core: ## Nur App + Postgres starten (OHNE Geo/OSRM/Nominatim) — wenig RAM nötig
|
||||||
|
$(COMPOSE) up -d --build app postgres
|
||||||
|
|
||||||
down: ## Stack stoppen
|
down: ## Stack stoppen
|
||||||
$(COMPOSE) down
|
$(COMPOSE) down
|
||||||
|
|
||||||
@@ -133,7 +136,10 @@ logs: ## App-Logs folgen
|
|||||||
ps: ## Status der Stack-Container
|
ps: ## Status der Stack-Container
|
||||||
$(COMPOSE) ps
|
$(COMPOSE) ps
|
||||||
|
|
||||||
deploy: build up ## build + up (Standard-Deploy; migrate läuft via Entrypoint automatisch)
|
deploy: build up ## build + up (voller Stack inkl. Geo; migrate via Entrypoint)
|
||||||
|
|
||||||
|
deploy-core: ## build + up-core (App + Postgres, ohne Geo; Geo später per 'make data' + 'make up')
|
||||||
|
$(MAKE) up-core
|
||||||
|
|
||||||
migrate-stack: ## Migrationen im laufenden App-Container ausführen (manuell)
|
migrate-stack: ## Migrationen im laufenden App-Container ausführen (manuell)
|
||||||
$(COMPOSE) exec app node docker/migrate.mjs
|
$(COMPOSE) exec app node docker/migrate.mjs
|
||||||
|
|||||||
Reference in New Issue
Block a user