blog: Make port a configurable knob
authorLucian Mogosanu <lucian@mogosanu.ro>
Tue, 2 Jul 2019 09:21:26 +0000 (12:21 +0300)
committerLucian Mogosanu <lucian@mogosanu.ro>
Tue, 2 Jul 2019 09:21:26 +0000 (12:21 +0300)
blog.lisp

index b08ba39..9a218b0 100644 (file)
--- a/blog.lisp
+++ b/blog.lisp
                             "mogosanu.ro:/virtual/sites/thetarpit.org")
                     :output *standard-output*))
 
-(defun tlbs-run-site (&key kill)
+(defun tlbs-run-site (&key kill (port 8000))
   (cond
     ((and (not *busybox-process*) (not kill))
      (setq *busybox-process*
            (sb-ext:run-program "/bin/busybox"
                                (list "httpd" "-f"
-                                     "-p" "8000"
+                                     "-p" (write-to-string port :base 10)
                                      "-c" (concatenate 'string
                                                        *lbs-base*
                                                        "httpd.conf")