From c0ee8ce33aa25dafda69a87cb203867405fa2caf Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Mon, 31 Oct 2022 08:32:44 -0500 Subject: Fix: deployable and swank in static image --- build.lisp | 12 ++++++++++++ vampire.asd | 2 ++ vampire.lisp | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/build.lisp b/build.lisp index a69a352..f58dc54 100644 --- a/build.lisp +++ b/build.lisp @@ -1,3 +1,15 @@ (ql:quickload :vampire) +(swank:swank-require + '(SWANK-IO-PACKAGE::SWANK-INDENTATION + SWANK-IO-PACKAGE::SWANK-TRACE-DIALOG + SWANK-IO-PACKAGE::SWANK-PACKAGE-FU + SWANK-IO-PACKAGE::SWANK-PRESENTATIONS + SWANK-IO-PACKAGE::SWANK-MACROSTEP + SWANK-IO-PACKAGE::SWANK-FUZZY + SWANK-IO-PACKAGE::SWANK-FANCY-INSPECTOR + SWANK-IO-PACKAGE::SWANK-C-P-C + SWANK-IO-PACKAGE::SWANK-ARGLISTS + SWANK-IO-PACKAGE::SWANK-REPL)) + (sb-ext:save-lisp-and-die "bin/vampire" :toplevel #'vampire::run-vampire :executable t ) diff --git a/vampire.asd b/vampire.asd index 4830ce2..4679228 100644 --- a/vampire.asd +++ b/vampire.asd @@ -7,6 +7,8 @@ :version "0.0.1" :serial t :depends-on (#:clog + #:hunchentoot + #:clack-handler-hunchentoot #:bknr.datastore #:legion #:defclass-std diff --git a/vampire.lisp b/vampire.lisp index b207c8a..185ec57 100644 --- a/vampire.lisp +++ b/vampire.lisp @@ -10,6 +10,7 @@ ((datastore-directory :ir :std #P"/srv/vampire/store/") (static-directory :ir :std #P"/srv/vampire/static/") (swank-port :std nil :doc "If set, swank is started on this port.") + (host :std "0.0.0.0") (port :ir :std 4919) (downloader-threads :ir :std 5))) @@ -48,7 +49,7 @@ (start-downloader-service config) (clog:initialize 'main :port (port config) - :host "localhost" + :host (host config) :extended-routing t :static-root (static-directory config)) (set-on-new-window (when-logged-in? 'user-home-page) :path "/home") -- cgit v1.2.3