From 4902e9c26cb100719506fe241fecd718c871de0b Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 12 Nov 2017 23:56:27 +0100 Subject: feat(blog): Add interactive start/stop functions --- blog.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'blog.el') diff --git a/blog.el b/blog.el index 0407f98c6ffe..4e7cf91d8e51 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)) -- cgit 1.4.1