code cleanup

This commit is contained in:
Marvin Zhang
2019-06-01 15:22:08 +08:00
parent 77e85c88c5
commit 0251ab7aa6
2 changed files with 0 additions and 19 deletions

View File

@@ -1,17 +0,0 @@
import sys
import os
# make sure the working directory is in system path
file_dir = os.path.dirname(os.path.realpath(__file__))
root_path = os.path.abspath(os.path.join(file_dir, '..'))
sys.path.append(root_path)
from config import PROJECT_LOGS_FOLDER, FLASK_HOST, FLASK_PORT
from manage import app
# create folder if it does not exist
if not os.path.exists(PROJECT_LOGS_FOLDER):
os.makedirs(PROJECT_LOGS_FOLDER)
# run app instance
app.run(host=FLASK_HOST, port=FLASK_PORT)

View File

@@ -1,2 +0,0 @@
#!/usr/bin/env bash
celery flower --broker=mongodb://localhost:27017