Skip to content

@diasjorge /contents
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
Something went wrong with that request. Please try again.