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>
<head>
<title>GF Quickstart</title>
@@ -13,7 +13,7 @@
<p>
Aarne Ranta
<p>
December 2010 for GF 3.2
October 2011 for GF 3.2.10
<p>
@@ -126,14 +126,15 @@ You can use this in Haskell and Java programs, and also on web services, such as
fridge magnets
</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>
$ pgf-http
Starting HTTP server, open http://localhost:41296/ in your web browser
Options {documentRoot = "/home/aarne/.cabal/share/gf-server-1.0/www", port = 41296}
$ gf -server
This is GF version 3.2.10.
Built on linux/i386 with ghc-7.0, flags: interrupt server cclazy
Document root = /usr/local/share/gf-3.2.10/www
Starting HTTP server, open http://localhost:41296/ in your web browser.
</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
copying it over to the <tt>documentRoot</tt> directory. Just push "reload" in
your browser after each such update.