1u commited on
Commit
0cae3e8
·
verified ·
1 Parent(s): fc88bc9

Create start_server.sh

Browse files
Files changed (1) hide show
  1. start_server.sh +19 -0
start_server.sh ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Create data directory if it doesn't exist
3
+ mkdir -p /data
4
+
5
+ # Set password from environment variable, with fallback to default
6
+ export PASSWORD="${PASSWORD:-huggingface}"
7
+
8
+ # Generate code-server config
9
+ mkdir -p ~/.config/code-server
10
+ cat > ~/.config/code-server/config.yaml << EOF
11
+ bind-addr: 0.0.0.0:7860
12
+ cert: false
13
+ EOF
14
+
15
+ # Start code-server with proper configuration
16
+ code-server \
17
+ --bind-addr 0.0.0.0:7860 \
18
+ --cert false \
19
+ /data