Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Emacs build pack error
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")) "")
(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