1 Star 0 Fork 3

Rooit/fast-api-demo

forked from amspring/fast-api-demo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
boot.sh 517 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
#!/bin/bash
# shellcheck disable=SC2154
if [[ $env = "prod" ]] ; then
env="prod"
else
# shellcheck disable=SC1068
env="dev"
fi
cp "config/config.${env}.yml" config.yml
echo "install requirements"
python3 -m pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
echo "copy api.ini to /var/app/conf/supervisord.d"
cp config/api.ini /var/app/conf/supervisord.d
echo "update and restart service"
supervisorctl update && supervisorctl restart api
echo "Success!"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/irooit/fast-api-demo.git
[email protected]:irooit/fast-api-demo.git
irooit
fast-api-demo
fast-api-demo
master

搜索帮助