summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/autopkgtest-ppas.service11
-rw-r--r--wsgi.py4
2 files changed, 15 insertions, 0 deletions
diff --git a/examples/autopkgtest-ppas.service b/examples/autopkgtest-ppas.service
new file mode 100644
index 0000000..5579194
--- /dev/null
+++ b/examples/autopkgtest-ppas.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=A web interface to access PPA autopkgtest runs
+After=network.target
+
+[Service]
+WorkingDirectory=/srv/autopkgtest-ppas
+ExecStart=/usr/bin/gunicorn -w 4 wsgi:app --bind [::]:80
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
diff --git a/wsgi.py b/wsgi.py
new file mode 100644
index 0000000..6026b0f
--- /dev/null
+++ b/wsgi.py
@@ -0,0 +1,4 @@
+from app import app
+
+if __name__ == "__main__":
+ app.run()