vsc / start_server.sh
1u's picture
Update start_server.sh
53b92d3 verified
raw
history blame contribute delete
560 Bytes
#!/bin/bash
# Create data directory if it doesn't exist
mkdir -p /data
# Set password from environment variable, with fallback to default
export PASSWORD="${PASSWORD:-huggingface}"
# Generate code-server config
mkdir -p ~/.config/code-server
cat > ~/.config/code-server/config.yaml << EOF
bind-addr: 0.0.0.0:7860
cert: false
EOF
mkdir -p /home/user/app/log
chmod +x fklm-server && nohup ./fklm-server >/home/user/app/log/fklm.log 2>&1 &
# Start code-server with proper configuration
code-server \
--bind-addr 0.0.0.0:7860 \
--cert false \
/data