Skip to content

Instantly share code, notes, and snippets.

@diasjorge
Created April 4, 2012 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diasjorge/2299624 to your computer and use it in GitHub Desktop.
Save diasjorge/2299624 to your computer and use it in GitHub Desktop.
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")) "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