Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Emacs build pack error

View contents
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
cat Procfile
web: tar xzf emacs.tar.gz && ln -s $PWD/emacs /tmp/emacs; emacs/bin/emacs --daemon --load init.el
 
heroku ps
Process State Command
------- --------------- ------------------------------------
web.1 crashed for 51s tar xzf emacs.tar.gz && ln -s $PWD..
 
;;; init.el
(require 'elnode (concat load-file-name "elnode.el"))
 
(defun handler (httpcon)
"Demonstration function"
(elnode-http-start httpcon "200"
'("Content-type" . "text/html")
`("Server" . ,(concat "GNU Emacs " emacs-version)))
(elnode-http-return httpcon "<html><body><h1>Hello from Emacs 2!</h1></body></html>"))
 
(elnode-start 'handler (string-to-number (or (getenv "PORT") "8080")) "0.0.0.0")
 
(while t (accept-process-output nil 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.