提交 c4faf30a 编写于 作者: C cloudswave

add code-server

上级 2029455e
.DS_Store .DS_Store
node_modules node_modules
/dist /dist
code-server-*
# local env files # local env files
......
run = "npm i && npm run dev" run = "bash install.sh"
language = "node" language = "node"
[env] [env]
......
bind-addr: 0.0.0.0:8080
auth: password
password: ecae8153b8ff296ad898b622
cert: false
#!/bin/bash
# 文件名和URL
filename="code-server-4.90.2-linux-amd64.tar.gz"
url="https://x.haod.me/https://github.com/coder/code-server/releases/download/v4.90.2/${filename}"
# 检查文件是否存在,如果不存在则下载
if [ ! -f "${filename}" ]; then
echo "Downloading ${filename}..."
wget "$url"
fi
# 解压文件
echo "Extracting ${filename}..."
tar -zxvf "${filename}"
# 清理压缩文件和解压后的目录
#rm -rf "${filename}"
# 运行 code-server
echo "Starting code-server with config file..."
./code-server-4.90.2-linux-amd64/bin/code-server --config ./config.yaml
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册