mirror of
https://github.com/kennethreitz-archive/listserved-service.git
synced 2026-06-05 07:16:13 +00:00
28 lines
506 B
Python
Executable File
28 lines
506 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from flaskext.script import Manager
|
|
from flask.ext.celery import install_commands as install_celery
|
|
|
|
from fedex import app
|
|
# from springcreek.core import db
|
|
|
|
|
|
manager = Manager(app)
|
|
install_celery(manager)
|
|
|
|
# @manager.command
|
|
# def syncdb():
|
|
# """Initializes the database."""
|
|
# db.create_all()
|
|
|
|
|
|
@manager.command
|
|
def inbox(addr, port):
|
|
from fedex.emaild import inbox
|
|
|
|
inbox.serve(int(port), addr)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
manager.run() |