diff --git a/Procfile b/Procfile index 27bfa3767f79f978dfeef871fef05ed3a918ba2e..2b40544f8bfb13466630c7a832409f94db0cd0d7 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1 @@ -web: gunicorn YKWIM:app -init: FLASK_APP=run.py \ No newline at end of file +web: gunicorn YKWIM:app \ No newline at end of file diff --git a/YKWIM/views.py b/YKWIM/views.py index 689fa5df08017a167327d7f2b2b823c6e070a699..854d0c01ca20a87a30e8d42eb509bdf00d3a6928 100644 --- a/YKWIM/views.py +++ b/YKWIM/views.py @@ -9,7 +9,7 @@ def index(): datasetURL=request.form["datasetURL"] file = request.files["templateFile"] file.save(os.path.join(app.config['UPLOAD_FOLDER'],secure_filename(file.filename))) - uml_image = pl.plantUML2Image(app.config['UPLOAD_FOLDER']+secure_filename(file.filename), "svg") + uml_image = pl.plantUML2Image(app.config['UPLOAD_FOLDER']+secure_filename(file.filename)) return render_template("index.html", uml_image=url_for('getDocumentLink',document_link=uml_image)) else: return render_template("index.html") @@ -17,5 +17,5 @@ def index(): @app.route("/<document_link>") def getDocumentLink(document_link): - return redirect("/tmp/"+document_link) + return send_from_directory(app.config['UPLOAD_FOLDER'],document_link) #send_from_directory(app.config['UPLOAD_FOLDER'],document_link)