aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-10-31 08:32:44 -0500
committerColin Okay <colin@cicadas.surf>2022-10-31 08:32:44 -0500
commitc0ee8ce33aa25dafda69a87cb203867405fa2caf (patch)
tree7f449153e1c96f0365405e1e6bc54ba589ea82ac
parent25d906dd84479522cd53bbb96597b7375de7a61e (diff)
Fix: deployable and swank in static image
-rw-r--r--build.lisp12
-rw-r--r--vampire.asd2
-rw-r--r--vampire.lisp3
3 files changed, 16 insertions, 1 deletions
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")