prod config for docker specific path
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user