/how-to-run-news

http://github.com/alimoeeny/arc · #! · 44 lines · 21 code · 23 blank · 0 comment · 0 complexity · 4d25e6b717e38abd211e8e20ec08dda8 MD5 · raw file

  1. To run News:
  2. tar xvf arc3.1.tar
  3. cd arc3.1
  4. mkdir arc
  5. echo "myname" > arc/admins
  6. mzscheme -f as.scm
  7. at the arc prompt:
  8. (load "news.arc")
  9. (nsv)
  10. go to http://localhost:8080
  11. click on login, and create an account called myname
  12. you should now be logged in as an admin
  13. manually give at least 10 karma to your initial set of users
  14. don't worry about "user break" messages when restarting News
  15. To customize News:
  16. change the variables at the top of news.arc
  17. To improve performance:
  18. (= static-max-age* 7200) ; browsers can cache static files for 7200 sec
  19. (declare 'direct-calls t) ; you promise not to redefine fns as tables
  20. (declare 'explicit-flush t) ; you take responsibility for flushing output
  21. ; (all existing news code already does)