From 0251ab7aa6959436e5b286eb342df9c3908116d0 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sat, 1 Jun 2019 15:22:08 +0800 Subject: [PATCH] code cleanup --- crawlab/bin/run_app.py | 17 ----------------- crawlab/bin/start_flower.sh | 2 -- 2 files changed, 19 deletions(-) delete mode 100644 crawlab/bin/run_app.py delete mode 100755 crawlab/bin/start_flower.sh diff --git a/crawlab/bin/run_app.py b/crawlab/bin/run_app.py deleted file mode 100644 index 999d7278..00000000 --- a/crawlab/bin/run_app.py +++ /dev/null @@ -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) diff --git a/crawlab/bin/start_flower.sh b/crawlab/bin/start_flower.sh deleted file mode 100755 index 98339f7d..00000000 --- a/crawlab/bin/start_flower.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -celery flower --broker=mongodb://localhost:27017