nsave commited on
Commit
225531d
·
verified ·
1 Parent(s): 7c7cc20

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +11 -0
start.sh ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ cd frontend
3
+ pnpm install
4
+ pnpm run build
5
+ if [ $? -eq 0 ]; then
6
+ echo -e "\033[1;32m\nfrontend build success \033[0m"
7
+ else
8
+ echo -e "\033[1;31m\nfrontend build failed\n\033[0m" >&2 exit 1
9
+ fi
10
+ cd ../
11
+ python3 main.py --port 7860 --host 0.0.0.0