mirror of
https://github.com/clearml/clearml-server
synced 2025-02-07 13:33:42 +00:00
Support setting fileserver upload folder using an environment variable
This commit is contained in:
parent
8630cc1021
commit
4595117d91
@ -14,6 +14,9 @@ app = Flask(__name__)
|
|||||||
CORS(app, **config.get("fileserver.cors"))
|
CORS(app, **config.get("fileserver.cors"))
|
||||||
Compress(app)
|
Compress(app)
|
||||||
|
|
||||||
|
if os.environ.get("TRAINS_UPLOAD_FOLDER"):
|
||||||
|
app.config["UPLOAD_FOLDER"] = os.environ.get("TRAINS_UPLOAD_FOLDER")
|
||||||
|
|
||||||
|
|
||||||
@app.route("/", methods=["POST"])
|
@app.route("/", methods=["POST"])
|
||||||
def upload():
|
def upload():
|
||||||
|
Loading…
Reference in New Issue
Block a user