diff options
Diffstat (limited to '')
| -rw-r--r-- | Pipfile | 3 | ||||
| -rw-r--r-- | Pipfile.lock | 10 |
2 files changed, 11 insertions, 2 deletions
@@ -12,13 +12,14 @@ flask = "*" flask-sockets = "*" gevent = "==1.2.2" gevent-websocket = "*" +gunicorn = "*" [requires] python_version = "3.6" [scripts] snekbox = "python snekbox.py" -snekweb = "python snekweb.py" +snekweb = "gunicorn -w 1 -b 0.0.0.0:5000 -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker snekweb:app" buildbox = "docker build -t pythondiscord/snekbox:latest -f docker/Dockerfile ." buildweb = "docker build -t pythondiscord/snekboxweb:latest -f docker/Dockerfile.webapp ." pushbox = "docker push pythondiscord/snekbox:latest" diff --git a/Pipfile.lock b/Pipfile.lock index 885f9c1..c580d4a 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "0a745b21e4db904bb3575c80d627ab80a3418bcb42e6e5c3695e914b88756114" + "sha256": "e371feaf8cfbc6df9050701afd2f1c9be77630841f833962845421542640e825" }, "pipfile-spec": 6, "requires": { @@ -143,6 +143,14 @@ ], "version": "==0.4.13" }, + "gunicorn": { + "hashes": [ + "sha256:7ef2b828b335ed58e3b64ffa84caceb0a7dd7c5ca12f217241350dec36a1d5dc", + "sha256:bc59005979efb6d2dd7d5ba72d99f8a8422862ad17ff3a16e900684630dd2a10" + ], + "index": "pypi", + "version": "==19.8.1" + }, "idna": { "hashes": [ "sha256:2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f", |