Add make targets for local chat and router
This commit is contained in:
12
Makefile
12
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user