Spaces:
Sleeping
Sleeping
Download scripts/start.sh from bitterapricot/node: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/spaces/bitterapricot/node/resolve/main/scripts/start.sh
- Command line
-
hf download hf://spaces/bitterapricot/node/scripts/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/bitterapricot/node/resolve/main/scripts/start.sh
594 Bytes
| # 设置环境变量 | |
| #export PYTHONPATH=/usr/local/lib/python3.9/site-packages:$PYTHONPATH | |
| #export DJANGO_SETTINGS_MODULE=myproject.settings | |
| echo "Server beginning ..." | |
| # 显示当前目录、CPU信息、磁盘使用情况和块设备 | |
| echo "Current Directory: $(pwd)"; echo "CPU Info:"; lscpu; echo "Disk Usage:"; df -h; echo "Block Devices:"; lsblk | |
| # 启动 Nginx // -g "daemon off;" | |
| #nginx -c "$(pwd)/nginx/nginx.conf" | |
| # 启动 FastAPI // --workers 3 | |
| #uvicorn fast_app:app --app-dir ./fast_app --reload --host 127.0.0.1 --port 8000 --log-level info | |
| echo "Server started ..." | |