Spaces:
Sleeping
Sleeping
Download run.sh from AZILS/antigravity2api2: direct link, hf CLI and curl.
- Browser
- Download file 417 Bytes
-
https://huggingface.co/spaces/AZILS/antigravity2api2/resolve/main/run.sh
- Command line
-
hf download hf://spaces/AZILS/antigravity2api2/run.sh
-
curl -L -o run.sh https://huggingface.co/spaces/AZILS/antigravity2api2/resolve/main/run.sh
417 Bytes
| # 赋予执行权限 | |
| chmod +x sync.sh | |
| echo "=== 阶段 1: 恢复备份 ===" | |
| # 注意:这里没有 & 符号,会阻塞直到下载完成 | |
| ./sync.sh restore | |
| echo "=== 阶段 2: 启动主程序 ===" | |
| # 启动后台备份循环 | |
| ./sync.sh loop & | |
| # 启动环境初始化 (从你的Dockerfile里看到的) | |
| if [ -f "src/config/init-env.js" ]; then | |
| node src/config/init-env.js | |
| fi | |
| # 启动应用 | |
| npm start |