Hacking Hack on Heroku

Posted on March 21, 2014 by

Yesterday, after our Hack announcement, we sat down with the heroku team to get Hack working on Heroku. And success! Read all about it over on the heroku blog.

First make an index.php file:


echo "Hello from HHVM ".HHVM_VERSION;

Then create a git repo, add the file, create our Heroku app and deploy away:

$ git init .
Initialized empty Git repository in /tmp/myhackapp/.git/
$ git add index.php
$ git commit -m 'initial'
[master (root-commit) 024f2b1] initial
 1 file changed, 3 insertions(+)
 create mode 100644 index.php
$ heroku create --buildpack https://github.com/hhvm/heroku-buildpack-hhvm
Creating stormy-crag-8213... done, stack is cedar
http://stormy-crag-8213.herokuapp.com/ | git@heroku.com:stormy-crag-8213.git

And then we can check and see that it worked:

$ heroku open

Send any issues to us on our buildpack repo.

Posted in Announcement, Hack Language | Leave a reply

One response to “Hacking Hack on Heroku”

  1. drsakr says:

    Very Good And We Want More 😀

Leave a Reply

Your email address will not be published. Required fields are marked *