mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
14 lines
274 B
Python
14 lines
274 B
Python
from celery import Celery
|
|
from flask import Flask
|
|
from flask_restful import Api
|
|
|
|
# TODO: 用配置文件启动 http://www.pythondoc.com/flask/config.html
|
|
app = Flask(__name__)
|
|
app.config['DEBUG'] = True
|
|
|
|
# init flask api instance
|
|
api = Api(app)
|
|
|
|
# start flask app
|
|
app.run()
|