Spaces:
Runtime error
Runtime error
Create start.sh
Browse files
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
|