code / start_server.sh
atonyxu
code
0660491
raw
history blame
419 Bytes
#!/bin/bash
JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
code-server -h
sed -i '/password/d' /home/user/.config/code-server/config.yaml
echo "password: ${JUPYTER_TOKEN}" >>/home/user/.config/code-server/config.yaml
cat /home/user/.config/code-server/config.yaml
NOTEBOOK_DIR="/data"
python /home/user/app/main.py
code-server --proxy-domain atonyxu-code.hf.space --bind-addr 0.0.0.0:8080 /data >/data/start.log 2>&1 &