Update Makefile
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: dev database api online-energieausweis all
|
.PHONY: dev database api online-energieausweis all prod
|
||||||
|
|
||||||
online-energieausweis:
|
online-energieausweis:
|
||||||
bun run dev
|
bun run dev
|
||||||
@@ -16,3 +16,8 @@ api:
|
|||||||
all:
|
all:
|
||||||
mkdir -p ~/logs
|
mkdir -p ~/logs
|
||||||
bun run dev 2>&1 | tee ~/logs/`date '+%d-%m-%Y_%H:%M:%S'`.log
|
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
|
||||||
Reference in New Issue
Block a user