Skip to content
Browse files

Revert "Use elnode to serve static web projects."

Having issues with browsers caching served files too aggressively;
reverting to python3/http.server.

This reverts commit d2e05d7.
  • Loading branch information...
1 parent 71dce8a commit 4b6638cc560e88feb97c1274358057a98fe1259d @bodil committed Jan 7, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 bodil-markup.el
View
6 bodil-markup.el
@@ -37,10 +37,12 @@
;; Launch a static web server in the current project root
(package-require 'projectile)
-(package-require 'elnode)
(defun http-server-in-project (port)
(interactive "nPort: ")
- (elnode-make-webserver (projectile-project-root) port))
+ (require 'projectile)
+ (let ((default-directory (projectile-project-root)))
+ (start-process "http.server" "*http.server*"
+ "python3" "-m" "http.server" (number-to-string port))))
;; Engage web-mode

0 comments on commit 4b6638c

Please sign in to comment.
Something went wrong with that request. Please try again.