honcho Foreman python 实现

honcho 使用 Foreman的 python实现,可以实现灵活的服务启动管理

参考使用

比如一个一个celery 启动的

  • 创建Procfile文件
woker1: celery -A app worker -l INFO --queues queue1
woker2: celery -A app worker -l INFO --queues queue2
redis:  redis-server
  • 效果

说明

基于Foreman的Procfile进行进程管理是一个很不错的模式,很值得在开发测试或者在本地一些部署场景使用

参考资料

https://github.com/nickstenning/honcho

https://pypi.org/project/honcho/

https://honcho.readthedocs.io/en/latest/#why-did-you-port-foreman

https://devcenter.heroku.com/articles/procfile

https://ddollar.github.io/foreman/

posted on   荣锋亮  阅读(8)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
历史上的今天:
2024-03-07 scalene python cpu&gpu 性能分析工具
2024-03-07 memray python 内存profiler 工具简单试用
2024-03-07 dremio sql 编辑器自动提示服务简单说明
2023-03-07 snowflake 元数据存储一些参考资料
2023-03-07 dremio 替换kv 服务的一些思路
2022-03-07 dremio 反射加速服务简单说明一

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示