summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix/forge/gunicorn.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/guix/forge/gunicorn.scm b/guix/forge/gunicorn.scm
index 70142f5..1ae7d6f 100644
--- a/guix/forge/gunicorn.scm
+++ b/guix/forge/gunicorn.scm
@@ -63,13 +63,16 @@
(define-record-type* <gunicorn-app>
gunicorn-app make-gunicorn-app
gunicorn-app?
+ this-gunicorn-app
(name gunicorn-app-name)
(package gunicorn-app-package)
(wsgi-app-module gunicorn-app-wsgi-app-module)
(sockets gunicorn-app-sockets
- (default (list (forge-ip-socket
- (ip "127.0.0.1")
- (port 8080)))))
+ (default (list (forge-unix-socket
+ (path (string-append "/var/run/gunicorn/"
+ (gunicorn-app-name this-gunicorn-app)
+ "/socket")))))
+ (thunked))
(workers gunicorn-app-workers
(default 1))
(environment-variables gunicorn-app-environment-variables