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 2025-03-07 08:00  荣锋亮  阅读(26)  评论(0)    收藏  举报

导航