1 Star 0 Fork 0

第三方资源/domain-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
mouday 提交于 2024-02-03 22:36 . 新增域名修改时搜索已有标签
# 伪目标
.PHONY: dev pro build clean upload publish
# 运行开发环境
dev:
source venv/bin/activate && gunicorn --bind '0.0.0.0:5000' --timeout 120 --reload 'domain_admin.main:app'
# 运行生产环境
pro:
source venv/bin/activate && gunicorn --bind '0.0.0.0:8000' --timeout 120 'domain_admin.main:app'
# 发布 make release
.PHONY: release
release:
python ./version-cli/auto_release.py
# 打包
build:
python setup.py sdist bdist_wheel --python-tag py2.py3
# 制作 docker 镜像
.PHONY: docker-build
docker-build:
docker build -t mouday/domain-admin:latest -f Dockerfile .
# 构建并运行 docker 镜像
.PHONY: docker-run
docker-run:
docker run -p 8000:8000 mouday/domain-admin:latest
# 构建并运行 docker 镜像
.PHONY: docker-build-run
docker-build-run:
make docker-build
make docker-run
# 清空打包产物
clean:
rm -rf temp logs .pytest_cache
rm -rf dist build *.egg-info
# 上传打包产物到 pypi
upload:
twine check dist/*
twine upload dist/*
# 发布 make publish
publish:
make clean
make build
make upload
make clean
# 运行所有测试
.PHONY: test
test:
pytest -c pytest.ini tests/api/test_index.py
# 安装开发环境依赖
# make install-require
.PHONY: install-require
install-require:
pip install -r requirements/development.txt
# 快速提交
# make fix
.PHONY: fix
fix:
git add . && git commit -m 'fix' && git push
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jerry-3rd/domain-admin.git
git@gitee.com:jerry-3rd/domain-admin.git
jerry-3rd
domain-admin
domain-admin
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385