seonglae commited on
Commit
6296de5
·
1 Parent(s): de587ea

fix: simplify server since it use built vite files

Browse files
Files changed (1) hide show
  1. start.sh +0 -22
start.sh CHANGED
@@ -1,27 +1,5 @@
1
  #!/bin/bash
2
 
3
- # Set environment variables for HF Spaces
4
- export VITE_API_BASE_URL=""
5
-
6
- # Start Flask backend in the background
7
- echo "Starting Flask backend..."
8
- python server.py &
9
-
10
- # Wait for backend to start
11
- sleep 10
12
-
13
- # Start frontend development server
14
- echo "Starting React frontend..."
15
- cd demo
16
- pnpm dev --host 0.0.0.0 --port 7860 &
17
-
18
- # Keep the container running
19
- wait
20
-
21
- ->
22
-
23
- #!/bin/bash
24
-
25
  # Set environment variables for HF Spaces
26
  export PORT=7860
27
 
 
1
  #!/bin/bash
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  # Set environment variables for HF Spaces
4
  export PORT=7860
5