Scriptor / pharen

Lisp to PHP Compiler
http://pharen.org
BSD 3-Clause "New" or "Revised" License
218 stars 31 forks source link

Deploying Pharen to a server #47

Closed girvo closed 11 years ago

girvo commented 12 years ago

Hey, loving Pharen, and I'm currently working on a routing and templating engine written in Pharen FOR pharen, inspired by Slim.

What I want to know is the best way to deploy Pharen to a server. What needs to be where? Is there a way to "statically link" the pharen libraries into the compiled files, so the compiled PHP is the only thing that needs to be copied to the server to deploy?

Or, is it better to install Pharen in /var/ and access it through /var/www/ instead (what I'm doing locally now)

Scriptor commented 12 years ago

Checkout the Pharenheit project. The main idea behind it is to automatically recompile Pharen files, but it also mentions adding a line to your .htaccess to set an HTTP_PHAREN_HOME location.

At the very least you'd need an installation of Pharen somewhere on your server. Then, you could either use the whole Pharenheit project or add the directive to your .htaccess and then use something like the following somewhere in your code: https://github.com/cdmckay/pharenheit/blob/master/pharenheit.php#L24. Let me know if you run into any problems with this. I know my response time to bugs has been pretty delayed, but hopefully this should get better soon.