about summary refs log tree commit diff
path: root/blog.el
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-11-12T22·56+0100
committerVincent Ambo <tazjin@gmail.com>2017-11-12T22·56+0100
commit4902e9c26cb100719506fe241fecd718c871de0b (patch)
tree5738d3ab3e5862bf3e2cabbc424e17f668e48bc8 /blog.el
parent3d4aba1803930453f1942b0e1b1648309c2da88b (diff)
feat(blog): Add interactive start/stop functions
Diffstat (limited to 'blog.el')
-rw-r--r--blog.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/blog.el b/blog.el
index 0407f98c6f..4e7cf91d8e 100644
--- a/blog.el
+++ b/blog.el
@@ -44,6 +44,12 @@
 (defun elblog-handler (httpcon)
   (elnode-hostpath-dispatcher httpcon elblog-routes))
 
-(elnode-start 'elblog-handler
+(defun start-elblog ()
+  (interactive)
+  (elnode-start 'elblog-handler
               :port 8010
-              :host "localhost")
+              :host "localhost"))
+
+(defun stop-elblog ()
+  (interactive)
+  (elnode-stop 8010))