prod config for docker specific path

This commit is contained in:
dechert
2021-06-17 18:40:31 +02:00
parent 8fec12133b
commit fbf34ffcdb
7 changed files with 56 additions and 4 deletions

View File

@@ -28,8 +28,12 @@ URL_BASE_PATH = "/"
# check_password_hash(config_parser.credentials['hashedPassword'], password):
# return username
OUTPUT_FODLER = "output"
UPLOAD_FODLER = "upload"
# OUTPUT_FODLER = "output"
# UPLOAD_FODLER = "upload"
import config_parser
UPLOAD_FODLER = config_parser.upload_path
# @app.route(URL_BASE_PATH + 'home', methods=['GET'])
# # @auth.login_required
@@ -55,6 +59,7 @@ def upload_image():
if not os.path.exists(UPLOAD_FODLER):
os.makedirs(UPLOAD_FODLER)
# TODO save to different path in Porduction!
csv_file.save(output_file_path)
# run converter