feat: onboarding pre-work
This commit is contained in:
10
Makefile
10
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: help setup start stop clean logs shell-backend shell-frontend migrate rebuild traefik-dashboard traefik-logs service-discovery network-inspect health-check-all mobile-setup db-shell-app install type-check lint build-local
|
||||
.PHONY: help setup start stop clean logs shell-backend shell-frontend migrate create-admin rebuild traefik-dashboard traefik-logs service-discovery network-inspect health-check-all mobile-setup db-shell-app install type-check lint build-local
|
||||
|
||||
help:
|
||||
@echo "MotoVaultPro - Simplified 5-Container Architecture"
|
||||
@@ -14,6 +14,7 @@ help:
|
||||
@echo " make shell-backend - Open shell in backend container"
|
||||
@echo " make shell-frontend - Open shell in frontend container"
|
||||
@echo " make migrate - Run database migrations"
|
||||
@echo " make create-admin - Create initial admin user (fresh deployments only)"
|
||||
@echo ""
|
||||
@echo "K8s-Ready Architecture Commands:"
|
||||
@echo " make traefik-dashboard - Access Traefik service discovery dashboard"
|
||||
@@ -94,6 +95,13 @@ migrate:
|
||||
@docker compose exec mvp-backend node dist/_system/migrations/run-all.js
|
||||
@echo "Migrations completed."
|
||||
|
||||
create-admin:
|
||||
@echo ""
|
||||
@echo "Creating initial admin user..."
|
||||
@echo "This command is only for fresh deployments with no existing admins."
|
||||
@echo ""
|
||||
@docker compose exec -it mvp-backend node dist/_system/cli/create-admin.js
|
||||
|
||||
rebuild:
|
||||
@echo "Rebuilding containers with latest code changes..."
|
||||
@docker compose up -d --build --remove-orphans
|
||||
|
||||
Reference in New Issue
Block a user