dimanche, juillet 24, 2005

Développement Web, UCW, SourceForge et Lisp on Lines

Il semble que UCW n'ai plus strictement besoin d'un serveur Web (plutôt, il peut utiliser SLIME). Voir si cela peut faire en sorte d'être installé sur SF. Par exemple en utilisant des redirections. En fait, dans le pire des cas, il devrait être possible d'utiliser 'mod_perl' et un script qui forwarde vers un sous-serveur CL. Cfr. l'article <42ecfb69@news.broadpark.no> sur c.l.lisp.

Documenter alors cette installation.

Regarder aussi au blog de Bill Clementson, et au Lisp on Lines de 'drewc', similaire à 'Ruby on Rails'.

Marco a donné sur c.l.lisp des infos d'install d'UCW, dans l'article <m2mznzdn8v.fsf@soma.local> :
  • 1) grab ucw, arnesi and yaclml from darcs:

    $ darcs get http://common-lisp.net/project/ucw/repos/ucw_dev
    $ darcs get http://common-lisp.net/project/bese/repos/arnesi
    $ darcs get http://common-lisp.net/project/bese/repos/yaclml

  • 2) grab puri, iterate and rfc2388 for the respective web sites.

  • 3) create a directory with symlinks to the .asd files for all these libs.

  • 4) add said directory to you asdf:*central-regstry* (put something along the lines of (push "/path/to/dir/systems/" asdf:*central-regstry*) to your .sbclrc or similar)

  • 5) edit ucw/bin/start.lisp and make sure that your using the httpd backend (the (use-httpd-backend) form should be uncommented, all the others commented or just deleted).

  • 6) from a terminal load up ucw/bin/start.lisp (do this from a "fresh" lisp image (iow don't load up any packages or onything before loading the start.lisp file)).

  • 7) point your browesr to http://127.0.0.1:8080/ucw/examples/index.ucw

    since you're using the httpd backend you wont get the stylesheets or the javascirpt stuff (i haven't yet taught it to server static content) but it should be enough to get you started.

  • 8) open up emacs+slime, type M-x slime-connect RET RET RET.


Tags:

Aucun commentaire: