Update Makefile

This commit is contained in:
Moritz Utcke
2024-11-06 12:15:00 +11:00
parent 53fa0c12ca
commit 726c88da87
2 changed files with 7 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: dev database api online-energieausweis all
.PHONY: dev database api online-energieausweis all prod
online-energieausweis:
bun run dev
@@ -16,3 +16,8 @@ api:
all:
mkdir -p ~/logs
bun run dev 2>&1 | tee ~/logs/`date '+%d-%m-%Y_%H:%M:%S'`.log
prod:
mkdir -p ~/logs
pm2 stop online-energieausweis
pm2 start --name "online-energieausweis" --log ~/logs/`date '+%d-%m-%Y_%H:%M:%S'`.log --time bun -- astro dev

View File

@@ -68,4 +68,4 @@ fi
# -p "${APP_PORT}:3000" \
# $APP_NAME;
bun run dev
make prod