Skip to content

Commit

Permalink
Add the "stop" command.
Browse files Browse the repository at this point in the history
  • Loading branch information
surabax committed Oct 29, 2024
1 parent e6a9de5 commit 4fdcac0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"HTTP"))
(0.3.1 2024-10-29
"* `stop` function was exported and `serve` function was extended to return the server handler.
* `stop` command was added.
* A typo was fixed in the documentation.")
(0.3.0 2024-05-27
"* Field `url` was added to `content` objects of type `post` and `page`. It contains a full URL of the page and can be used as `canonical` URL in templates.")
Expand Down
6 changes: 6 additions & 0 deletions docs/making-a-static-site.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ CL-USER> (staticl:stop)
; No values
```
Or from the command line:
```bash
$ staticl stop
```
## How to add comments using Disqus
Expand Down
4 changes: 4 additions & 0 deletions src/main.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@
port)
(uiop:quit 1)))
:interface interface))

(defcommand (main stop) ()
"Stops the web server."
(staticl:stop))

0 comments on commit 4fdcac0

Please sign in to comment.