1
0
forked from GitHub/gf-core

gf-quickstart.html: describe gf -server instead of pgf-http

This commit is contained in:
hallgren
2011-10-24 18:13:04 +00:00
parent 80a079f20b
commit f65ed55c23

View File

@@ -1,4 +1,4 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>GF Quickstart</title> <title>GF Quickstart</title>
@@ -13,7 +13,7 @@
<p> <p>
Aarne Ranta Aarne Ranta
<p> <p>
December 2010 for GF 3.2 October 2011 for GF 3.2.10
<p> <p>
@@ -126,14 +126,15 @@ You can use this in Haskell and Java programs, and also on web services, such as
fridge magnets fridge magnets
</ul> </ul>
The quickest way to provide a GF web service is to start the program <tt>pgh-http</tt> The quickest way to provide a GF web service is to start GF with the <tt>-server</tt> option:
<pre> <pre>
$ pgf-http $ gf -server
Starting HTTP server, open http://localhost:41296/ in your web browser This is GF version 3.2.10.
Built on linux/i386 with ghc-7.0, flags: interrupt server cclazy
Options {documentRoot = "/home/aarne/.cabal/share/gf-server-1.0/www", port = 41296} Document root = /usr/local/share/gf-3.2.10/www
Starting HTTP server, open http://localhost:41296/ in your web browser.
</pre> </pre>
which resides next to your <tt>gf</tt> program. You can view it locally by pointing your You can view it locally by pointing your
browser to the URL shown. You can add your own <tt>.pgf</tt> grammar to the service by browser to the URL shown. You can add your own <tt>.pgf</tt> grammar to the service by
copying it over to the <tt>documentRoot</tt> directory. Just push "reload" in copying it over to the <tt>documentRoot</tt> directory. Just push "reload" in
your browser after each such update. your browser after each such update.