summaryrefslogtreecommitdiff
path: root/src/server
AgeCommit message (Collapse)Author
2011-06-21gf-server: make pgf-service work the Apache mod_fastcgihallgren
pgf-service now appears to works with Apache mod_fastcgi (under Mac OS X) in addition to lighttpd. One difference appears to be that while lighttpd passes the name of the PGF file in the SCRIPT_FILENAME variable, Apache passes it in PATH_TRANSLATED. But perhaps this depends on exactly how the fastcgi service is configured. The following is what I added to the Apache configuration file to test this: <Directory /Library/WebServer/Documents/fcgi-bin> SetHandler fastcgi-script Options +ExecCGI </Directory> Action pgf-service /fcgi-bin/pgf-service AddHandler pgf-service .pgf
2011-06-21gf-server: enable -rtsopts when compiling with ghc>=7.0hallgren
2011-06-21gf-server.cabal: a separate flag for the content servicehallgren
* Use cabal install -ffastcgi to compile the fastcgi server. * Use cabal install -fcontent to compile the content service (off by default, currently broken) * Use both flag to compile both.
2011-03-07the user can now upload their own grammars in the editorkrasimir
2011-01-09The name of the fastcgi executable has changed back to pgf-servicehallgren
2010-12-28The GF editor now lets the user to upload his/her own grammarskrasimir
2010-12-23gf-server.cabal: changes to stop cabal from demanding hsql even when ↵hallgren
content-server is not going to be built
2010-12-22PGF web service: make the generated index.html for pgf-http a bit more ↵hallgren
informative
2010-12-22gf-server.cabal: update description of fastcgi flaghallgren
2010-12-22gf-server.cabal: make hsql-mysql optional like fastcgihallgren
content-service depends on hsql-mysql, which depends on a C library, so like fastcgi, only compile it if you ask for it explicitly with -ffastcgi.
2010-12-22gf-server.cabal: Change the default for the flag fastcgi to Falsehallgren
If you want the fastcgi server, use cabal install -ffastcgi. This is to avoid problems when you only want to compile pgf-http and the fastcgi library fails to install, which it usually does, since it depends on a C library which is not installed automatically with cabal.
2010-12-22PGF web service: Use Content-Type text/javascript from JSON outputhallgren
The Content-Type used to be text/json, but this caused warning messages in some web browers.
2010-12-22tweak gf-server.cabalkrasimir
2010-12-17pgf-http now uses $datadir/www instead of ./www as the document roothallgren
Along with the changes to Setup.hs it should now be enough to do cabal install pgf-http open http://localhost:41296/ to run the PGF service locally and play with some example grammars in minibar.
2010-12-17RunHTTP.hs: remove hardcoded document roothallgren
The document root is now part of the arguments passed to runHTTP.
2010-12-17Install minibar and some example grammars along with pgf-httphallgren
Together with the changes to pgf-http, this should make it much easier to run the PGF service and minibar locally.
2010-11-26Split pgf-server into pgf-fcgi and pgf-http.hallgren
The dependency on the fastcgi package made pgf-server difficult to compile, so it is now split into - pgf-fgci (main module in pgf-fcgi.hs), which is built only if fastcgi is already installed or if you turn on the fastcgi flag (e.g. by doing 'cabal install -f fastcgi'). - pgf-http (main module in pgf-http.hs) which is always built (and hopefully has no problematic dependencies.) The modules FastCGIUtils and PGFService no longer depend on fastcgi.
2010-11-25pgf-server: more useful JSON output from lineraizeAllhallgren
Example: Request: http://www.grammaticalframework.org:41296/grammars/Quiz.pgf?command=linearizeAll&tree=Run+YouPl Response: [{"to":"QuizEng","texts":["you run"]}, {"to":"QuizSwe","texts":["ni l??per","ni springer"]}] Compared to the old command linearize: Request: http://www.grammaticalframework.org:41296/grammars/Quiz.pgf?command=linearize&tree=Run+YouPl' Response: [{"to":"QuizEng","text":"you run"}, {"to":"QuizSwe","text":"ni l??per"}]
2010-11-24linearizeAll in PGFServiceaarne
2010-11-09Make PGFService.hs compile againhallgren
+ PGFService.hs: add Nothing arguments in calls to PGF.parse_ and PGF.getPArseOutput + gf-server.cabal: mark content-server as not buildable, since required source files are missing.
2010-10-13the PGF service now can do both random and exhaustive generation. these ↵krasimir
functions now return both the generated tree and its linearization
2010-10-11the exhaustive/random generator now knows how to handle computable functions ↵krasimir
in the types
2010-10-02refactor the API for random generation again. Now PGF contains probabilities ↵krasimir
in the abstract syntax
2010-09-30update PGFService to work after the extensions in the random generation APIkrasimir
2010-09-24pgf-server HTTP mode: omit charset from ContentType for static fileshallgren
When pfg-server servers a static file in HTTP mode, it is output as is, so specifying charset="iso-8859-1" could be wrong. Note: the a charset can be specified with a meta tag in HTML files, e.g. for files in UTF-8: <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
2010-09-10pgf-server HTTP mode: support the Accept-Language headerhallgren
It is needed for the userLanguage field in the grammar info from pgf-server
2010-09-03pgf-server HTTP mode: workaround for bugs in the httpd-shed package that ↵hallgren
prevented the fridge and translate web apps from working queryToArguments "?&input=bla+bla" returns [("&input","bla+bla")] but should return [("input","bla bla")]
2010-09-02pgf-server HTTP mode feature: return the contents of index.html when the URL ↵hallgren
refers to a directory
2010-09-02Bug fix: add missing error handler for statically served files in pgf-server ↵hallgren
HTTP mode
2010-09-01Standalone HTTP version of pgf-serverhallgren
pgf-server can now act as a standalone HTTP server. To activate this mode, start it with pfg-server http to use the default port number (41296), or give an explicit port number, e.g., pgf-server http 8080 The HTTP server serves PGF files in the same way as the old FastCGI interface. In addition, it also serves static files. The document root for static files is the www subdirectory of the current directory where pgf-server is started. In spite of these addition, backwards compatibility is maintaned. The old FastCGI interface continues to work as before. (It is activated when pgf-server is started without arguments.)
2010-08-09native representation for HOAS in PMCFG and incremental type checking of the ↵krasimir
parse forest
2010-08-24more advanced complete function in the PGFServicekrasimir
2010-07-31bugfix in the PGF browserkrasimir
2010-07-31the PGF service now generates samples of the syntax in the browsing informationkrasimir
2010-07-31fix: FastCGIUtils.outputHTML should do UTF8 encodingkrasimir
2010-07-31fix: PGFService should type-check the trees that comes from the userkrasimir
2010-07-13detailed information for the type errors from PGFServicekrasimir
2010-07-08update the shell scripts and some other configuration files for GWT 2.0.4krasimir
2010-07-08add src/ui folder for both Android and GWT UIskrasimir
2010-07-08change the package name of the GWT Apps to org.grammaticalframework.ui.gwtkrasimir
2010-07-08upgrade to GWT 2.0.4krasimir
2010-07-08FridgeApp and TranslateApp now show the type errorskrasimir
2010-07-07fix PGFService after the change in the parser APIkrasimir
2010-05-28disambiguation in Phrasebook: show Eng instead of AST if DisambL is missing; ↵aarne
show all alternative disambiguations for each alternative translation
2010-04-30for backward compatibility we have the old parse function again. the old ↵krasimir
functionality is exposed by parse_
2010-04-30fix PGFService after the change in the APIkrasimir
2010-04-22Update version numbers for build-depends in gf-server.cabalhallgren
2010-04-22now the PGF service communicates with Graphviz using UTF8 for the input and ↵krasimir
binary for the output
2010-04-22the pgf service now compiles with the latest CGI packagekrasimir
2010-04-20Changes to lighttpd.conf to allow grammars.cgi to workhallgren