hhvm server failure

0

I created a school project to use the Hack language.

I performed the installation of hhvm according to documentation

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/user/Documents/web/ajax/selectPost.hh appears   to be a Hack file, but you do not appear to be running the Hack   typechecker.

I did not understand how I can execute a file on the server.

Does anyone know what setting I have missed?

    
asked by anonymous 06.06.2017 / 13:12

1 answer

0

Solution:

In the root directory of your project, create an empty file with the name .hhconfig . The type checker uses this file to know which directory tree to check for type, without having to specify paths for each command.

    
06.06.2017 / 17:33