diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-03-31 19:33:08 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-03-31 19:33:08 +0300 |
commit | d2bc1d1fb15015c8bef88ab392be61d92219e39d (patch) | |
tree | 311a26cf0d3e15a475fb95558fa76db6e563ebf9 | |
parent | e25c569431b7b4d161bdd0a6c4f5052af2e0e5e4 (diff) | |
download | ick2-d2bc1d1fb15015c8bef88ab392be61d92219e39d.tar.gz |
Fix: don't run artifact store under gunicorn
Gunicorn fails when files are too big. A gigabyte is too big.
We'll need to find a better solution than using the Bottle built-in
debug mode HTTP server, though.
-rw-r--r-- | artifact_store.py | 2 | ||||
-rw-r--r-- | start_artifact_store | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/artifact_store.py b/artifact_store.py index 3a19079..ea1db6a 100644 --- a/artifact_store.py +++ b/artifact_store.py @@ -120,4 +120,4 @@ app = main() if __name__ == '__main__': print('running in debug mode') - app.run(host='127.0.0.1', port=12765) + app.run(host='127.0.0.1', port=12766) diff --git a/start_artifact_store b/start_artifact_store index 3bc4a40..a920db0 100644 --- a/start_artifact_store +++ b/start_artifact_store @@ -17,8 +17,4 @@ set -eux export ARTIFACT_STORE_CONFIG=/etc/ick/artifact_store.yaml -gunicorn3 \ - --bind 127.0.0.1:12766 \ - --log-file /var/log/ickas/gunicorn3.log \ - --log-level debug \ - artifact_store:app +python3 /usr/lib/python3/dist-packages/artifact_store.py |