nex3 / arc

Paul Graham's Brand New Lisp

This URL has Read+Write access

pg and rtm <> (author)
Sat Jul 04 16:42:33 -0700 2009
rntz (committer)
Sat Jul 04 16:42:33 -0700 2009
arc / how-to-run-news
100644 45 lines (21 sloc) 0.778 kb
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
34
35
36
37
38
39
40
41
42
43
44
45
To run News:
 
tar xvf arc3.tar
 
cd arc3
 
mkdir arc
 
echo "myname" > arc/admins
 
mzscheme -f as.scm
 
at the arc prompt:
 
(load "news.arc")
 
(nsv)
 
go to http://localhost:8080
 
click on login, and create an account called myname
 
you should now be logged in as an admin
 
manually give at least 10 karma to your initial set of users
 
don't worry about "user break" messages when restarting News
 
 
 
To customize News:
 
change the variables at the top of news.arc
 
 
 
To improve performance:
 
(= static-max-age* 7200) ; browsers can cache static files for 7200 sec
 
(declare 'direct-calls t) ; you promise not to redefine fns as tables
 
(declare 'explicit-flush t) ; you take responsibility for flushing output
                            ; (all existing news code already does)