Inside a dotCloud run
file.
#!/path/to/swipl -s
:- use_module(library(dotcloud)).
:- http_handler(/, hello, []).
main(_) :-
server(www).
hello(_Request) :-
format('Content-type: text/plain~n~n'),
format('Hello Prolog, from dotCloud!~n').
A convenience library for working with SWI-Prolog on dotCloud.
- First public release
Using SWI-Prolog 6.3 or later:
?- pack_install(dotcloud).
This module uses semantic versioning.
Source code available and pull requests accepted at http://github.com/mndrix/dotcloud