GithubHelp home page GithubHelp logo

push_to_url's Introduction

目录结构

├── ChangeLog
├── demo
│   ├── push_server.py
│   └── requirements
├── etc
│   ├── pusher_config.py
│   └── supervisor.conf
├── lib
│   ├── dbpc.py
│   ├── mwconfig.py
│   ├── mwlogger.py
│   ├── pusher_utils.py
│   └── rdao.py
├── mkpkg.sh
├── mw_pusher
│   └── mwPusher.py
├── mw_repusher
│   └── mwRepusher.py
├── PROG_VERSION.def
├── readme.txt
├── requirements
├── setup.py
├── test
└── tools
    └── config_update.py


mw_pusher: 推送模块主程序
mw_repusher: 重试推送模块主程序
etc: 配置文件
lib: 自实现的库
requirements: 第三方依赖
demo: 实现了接收数据的服务
ChangeLog: 记录了版本变更内容,最顶上为最新版本
tools: 工具集合目录
setup.py: 安装脚本
test: 测试代码目录

安装:

  1. 先安装requirements依赖
  • sudo pip install -r requirements
  1. python setup.py <mw_pusher|mw_repusher|all> -d install_dir [--autostart] [--upgrade|--rollback]
  • setup.py会按照etc/supervisor.conf的配置启动supervisord

启动与停止

  1. 用supervisorctl控制启动和停止
 supervisorctl -c ./etc/supervisor.conf reload  # 重启 supervisord 进程, 此步骤不是必须的,除非改动了etc/supervisor.conf文件
 supervisorctl -c ./etc/supervisor.conf start|stop|restart mw_pusher|mw_repusher|all

升级与回滚

  • N/A

push_to_url's People

Contributors

dlf412 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.