aboutsummaryrefslogtreecommitdiffstats
path: root/Pipfile
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-06-22 15:06:21 +0200
committerGravatar GitHub <[email protected]>2019-06-22 15:06:21 +0200
commit56949e7d2e5d05d975fc9d12a4b5efe5c45e3188 (patch)
tree5cd3466437988ff589857a36ff1e3ade12f7706f /Pipfile
parentMerge pull request #24 from python-discord/refactor/nsjail (diff)
parentUse a custom Gunicorn access log format (diff)
Merge pull request #29 from python-discord/api-adjustments
API Adjustments
Diffstat (limited to 'Pipfile')
-rw-r--r--Pipfile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Pipfile b/Pipfile
index 6b6aa24..986116d 100644
--- a/Pipfile
+++ b/Pipfile
@@ -31,7 +31,15 @@ lint = "flake8"
precommit = "pre-commit install"
test = "pytest tests --cov . --cov-report term-missing -v"
report = "pytest tests --cov . --cov-report=html"
-snekbox = "gunicorn -w 2 -b 0.0.0.0:8060 --logger-class snekbox.GunicornLogger --access-logfile - snekbox.api.app"
+snekbox = """
+ gunicorn
+ -w 2
+ -b 0.0.0.0:8060
+ --logger-class snekbox.GunicornLogger
+ --access-logformat '%(m)s %(U)s%(q)s %(s)s %(b)s %(L)ss'
+ --access-logfile -
+ snekbox.api.app
+"""
buildbox = "docker build -t pythondiscord/snekbox:latest -f docker/Dockerfile ."
pushbox = "docker push pythondiscord/snekbox:latest"
buildboxbase = "docker build -t pythondiscord/snekbox-base:latest -f docker/base.Dockerfile ."