Browse Source

Use a unix socket for uwsgi

Getty Ritter 2 years ago
parent
commit
bcddfaf4e6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tasks.py

+ 2 - 2
tasks.py

@@ -50,6 +50,6 @@ def tc(c):
 
 
 @task
-def uwsgi(c, port=9898):
+def uwsgi(c, sock="lc.sock"):
     """Run a uwsgi server"""
-    c.run(f"poetry run uwsgi --socket {port} --module lament-configuration:app --processes 4 --threads 2")
+    c.run(f"poetry run uwsgi --socket {sock} --module lament-configuration:app --processes 4 --threads 2")