Add make targets for local chat and router

This commit is contained in:
josedario87
2025-06-04 22:58:59 -06:00
parent 09ecf78434
commit 49fc0d6154
3 changed files with 28 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: sync-from-github sync-to-github
.PHONY: sync-from-github sync-to-github chat router
# Pull latest changes from the GitHub mirror and push them to Gitea
sync-from-github:
@@ -8,3 +8,13 @@ sync-from-github:
# Push local changes to the GitHub mirror
sync-to-github:
git push github main
# Start the chat UI locally (uses variables from .env if present)
chat:
@set -a; [ -f .env ] && . .env || true; set +a; \
cd chat-ui && npm install && npm run build && npm start
# Start the WhatsApp router locally (uses variables from .env if present)
router:
@set -a; [ -f .env ] && . .env || true; set +a; \
cd whatsapp-router && npm install && npm run build && npm start