-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.pl
35 lines (24 loc) · 926 Bytes
/
production.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
:- module(production, []).
/** <module> production mode starter file
Consult this file to start the system in production
don't load both it and debug
*/
% Make it easier to read 'codes' style strings
:- portray_text(true).
% pldoc is SWI-Prolog's equivilent of doxygen
% pldoc is served at / by default. We need to
% move pldoc's URI path so it doesn't interfere with the main
% application. Each SWI-Prolog process has a single global
% URI space for dispatch.
% abstract URI paths allow us to disconnect the served URI path
% from the name we refer to it by. By default, pldoc('foo/bar') maps
% to /foo/bar. We'll move pldoc to /help/source, so pldoc('foo/bar')
% will serve from /help/source/foo/bar
% First we import the abstract path stuff
:- use_module(library(http/http_path)).
% load our application server
:- ensure_loaded(load).
:- use_module(ludumdare).
%
% And start that puppy
:- ludum_server.