Delete entrypoint.sh
Browse files- entrypoint.sh +0 -16
entrypoint.sh
DELETED
|
@@ -1,16 +0,0 @@
|
|
| 1 |
-
#!/bin/bash
|
| 2 |
-
|
| 3 |
-
# 设置代理
|
| 4 |
-
export HTTP_PROXY=https://hfblackbox.1224435936.workers.dev
|
| 5 |
-
export HTTPS_PROXY=https://hfblackbox.1224435936.workers.dev
|
| 6 |
-
|
| 7 |
-
# 网络检查
|
| 8 |
-
echo "正在检查网络连接..."
|
| 9 |
-
if curl -s -o /dev/null --connect-timeout 5 https://www.blackbox.ai; then
|
| 10 |
-
echo "成功连接到blackbox.ai"
|
| 11 |
-
else
|
| 12 |
-
echo "无法连接到blackbox.ai,请检查网络配置"
|
| 13 |
-
fi
|
| 14 |
-
|
| 15 |
-
# 启动应用
|
| 16 |
-
exec uvicorn main:app --host 0.0.0.0 --port 8001
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|