Fix Dockerfile

This commit is contained in:
Akira Tempaku 2025-03-29 01:07:45 +09:00
commit cb50ff863b
Signed by: paku
GPG key ID: 5B4E8402BCC50607
11 changed files with 72 additions and 93 deletions

View file

@ -1,8 +1,7 @@
(defpackage #:hp
(:nicknames #:hp/main)
(:use #:cl)
(:local-nicknames (#:jg #:jingle))
(:local-nicknames (#:env #:hp/env))
(:import-from #:clack)
(:import-from #:hp/app
#:*app*)
(:export #:start
@ -10,11 +9,22 @@
#:reload))
(in-package #:hp)
(defparameter *handler* nil)
(defun start ()
(jg:start *app*))
(if *handler*
(format t "The server is already running.~%")
(setf *handler* (clack:clackup *app*
:server :hunchentoot
:address "localhost"
:port 3000))))
(defun stop ()
(jg:stop *app*))
(if *handler*
(progn
(clack:stop *handler*)
(setf *handler* nil))
(format t "The server is not running.~%")))
(defun reload ()
(stop)