Commit 0dce0787 authored by Stephane Glondu's avatar Stephane Glondu

Basic infrastructure for Eliom application

parent f4a25444
<**/*.{ml,mli}>: package(zarith), package(calendar), package(uuidm), package(cryptokit), package(atdgen)
<**/*.{ml,mli}>: thread, package(zarith), package(calendar), package(uuidm), package(cryptokit), package(atdgen), package(eliom.server)
<**/*_{t,j}.{ml,mli}>: package(yojson)
src/lib.cma
src/server.cma
open Lwt
open Eliom_content.Html5.D
open Eliom_service
open Eliom_parameter
open Eliom_registration.Html5
let main_service =
register_service ~path:["helios"] ~get_params:unit
(fun () () -> return (html (head (title (pcdata "Page title")) [])
(body [h1 [pcdata "Helios"]])))
Helios_services
<!-- -*- Mode: Xml -*- -->
<ocsigen>
<server>
<port>8001</port>
<logdir>_RUNDIR_/log</logdir>
<datadir>_RUNDIR_/lib</datadir>
<commandpipe>_RUNDIR_/run/ocsigenserver_command</commandpipe>
<charset>utf-8</charset>
<findlib path="/usr/lib/ocaml"/>
<extension findlib-package="ocsigenserver.ext.staticmod"/>
<extension findlib-package="ocsigenserver.ext.ocsipersist-sqlite">
<database file="_RUNDIR_/lib/ocsidb"/>
</extension>
<extension findlib-package="eliom.server"/>
<host charset="utf-8" hostfilter="*" defaulthostname="localhost">
<eliom module="_build/src/server.cma" />
</host>
</server>
</ocsigen>
#!/bin/sh
RUNDIR=${SELENIOS_RUNDIR:-_run}
mkdir -p \
$RUNDIR/etc \
$RUNDIR/log \
$RUNDIR/lib \
$RUNDIR/run
sed "s@_RUNDIR_@$RUNDIR@g" tests/ocsigenserver.conf.in > $RUNDIR/etc/ocsigenserver.conf
if [ ! -d _build ]; then
echo "This script should be run from the root of the source tree!"
exit 1
fi
ocsigenserver -c $RUNDIR/etc/ocsigenserver.conf "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment