Greetings, all -
Experiencing the wonder of webapp development, I've managed
to bring up "Congratulations, you are now running your very own Wiki"
on the Front Page from the code in /extra/webapps/wiki. But clicking the
proffered
'*Edit*' link returns a dread "Response error" at
http://127.0.0.1:8080/edit/Front%20Page,
and elsewhere.
The new code that gets me this far is the following (run in the Listener):
---
USE: my-wiki
USE: my-wiki-run
run-wiki
*(the latter being:)*
USING: accessors db db.sqlite db.tuples furnace.alloy
furnace.db http.server io.files io.files.temp kernel
my-wiki namespaces threads ;
IN: my-wiki-run
: with-wiki-db ( quot -- )
"wiki.db" <sqlite-db> swap with-db ; inline
: run-wiki ( -- )
[ { article revision } ensure-tables ] with-wiki-db
[ init-wiki ] with-wiki-db
<wiki>
"wiki.db" <sqlite-db> <alloy>
main-responder set-global [ 8080 httpd drop ] in-thread ;
---
I've gone cross-eyed with various permutations on this theme, to no avail;
time to ask for a less blood-shot view, as I'm now seeing double.
(N.B. -- 'my-wiki' is just /extra/webapps/wiki copied to factor/work for
convenience).
Suggestions? Poultices?
Happy New Year!
CW Alston
--
*~ Memento Amori*
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk