Failure on the hhvm server

Asked

Viewed 37 times

0

I created a school project to use the language Hack.

I performed the installation of the hhvm as documented

sudo apt-get install hhvm

I started the server

hhvm -m server -p 8080

And I created a file called selectPost.hh which contains only the initial tag

<?hh
   //Nao tem mais nada

When I open the browser and try to run my file it does not work. In the terminal log generates the following:

Fatal error: /home/usuario/Documents/web/ajax/selectPost.hh appears to be a Hack file, but you do not appear to be running the Hack typechecker.

I don’t understand how I manage to run a file on the server.

Does anyone know which configuration I missed perform?

1 answer

0


Solution:

At the root of your project’s directory, create an empty file with the name .hhconfig. Type checker uses this file to know which directory tree to check type without needing to specify paths for each command.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.