summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--forbidden-salamanders.service12
-rw-r--r--requirements.txt5
3 files changed, 18 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 3d51db0..0806a30 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
.ipynb_checkpoints
tmp
+venv/
diff --git a/forbidden-salamanders.service b/forbidden-salamanders.service
new file mode 100644
index 0000000..01a7304
--- /dev/null
+++ b/forbidden-salamanders.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=forbidden-salamanders
+After=network.target
+
+[Service]
+Type=simple
+Restart=on-failure
+ExecStart=/srv/forbidden-salamanders/venv/bin/waitress-serve --host 127.0.0.1 --port 9010 app:app
+WorkingDirectory=/srv/forbidden-salamanders/
+
+[Install]
+WantedBy=multi-user.target
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..34e26ed
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,5 @@
+Flask
+Flask-WTF
+numpy
+pycryptodome
+waitress