summaryrefslogtreecommitdiff
path: root/vampire.lisp
diff options
context:
space:
mode:
authorGrant Shangreaux <grant@unabridgedsoftware.com>2024-05-31 13:39:05 -0500
committerGrant Shangreaux <grant@unabridgedsoftware.com>2024-05-31 13:39:05 -0500
commit9b51a908448c23eff673934f023d247a6c47519d (patch)
tree89384c75ed8d2b8add927b1584267847e6ab0ea4 /vampire.lisp
parent2832a7c9e75400e36ca12a028ffcbeece44c8216 (diff)
Add: initial login form and authentication
Diffstat (limited to 'vampire.lisp')
-rw-r--r--vampire.lisp8
1 files changed, 7 insertions, 1 deletions
diff --git a/vampire.lisp b/vampire.lisp
index 247ff4d..86ef4fa 100644
--- a/vampire.lisp
+++ b/vampire.lisp
@@ -41,13 +41,19 @@
(defun when-logged-in? (fn)
(<?> 'session-user fn 'redirect-to-root))
-
+(defvar *server*)
+(setf (documentation '*server* 'variable)
+ "The hunchentoot acceptor instance")
(defun start-vampire (config)
(setf *config* config)
(initialize-database config )
(start-downloader-service config)
+ (setf *server* (make-instance 'hunchentoot:easy-acceptor
+ :port (port config)))
+ (hunchentoot:start *server*)
+
(when (swank-port config)
(swank:create-server :port (swank-port config) :dont-close t)))