From 1ae323fa5ec8dad2e8fab58c28c70d6e37b66d3d Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Tue, 23 Aug 2022 22:43:44 +1200 Subject: [PATCH] Move the startup file --- .gitignore | 3 +++ src/server.rkt => breezewiki.rkt | 14 +++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) rename src/server.rkt => breezewiki.rkt (85%) diff --git a/.gitignore b/.gitignore index 82302eb..7da65b0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,8 @@ *.typedattempt *.untyped +# Compiled +compiled + # Personal /config.txt diff --git a/src/server.rkt b/breezewiki.rkt similarity index 85% rename from src/server.rkt rename to breezewiki.rkt index a146538..e1cbf2f 100644 --- a/src/server.rkt +++ b/breezewiki.rkt @@ -8,12 +8,12 @@ (prefix-in lift: web-server/dispatchers/dispatch-lift) (prefix-in filter: web-server/dispatchers/dispatch-filter) (prefix-in files: web-server/dispatchers/dispatch-files) - "config.rkt" - "page-category.rkt" - "page-not-found.rkt" - "page-proxy.rkt" - "page-wiki.rkt" - "page-search.rkt") + "src/config.rkt" + "src/page-category.rkt" + "src/page-not-found.rkt" + "src/page-proxy.rkt" + "src/page-wiki.rkt" + "src/page-search.rkt") (define mime-types (hash #".css" #"text/css" @@ -30,7 +30,7 @@ (filter:make #rx"^/static/" (files:make #:url->path (lambda (u) - ((make-url->path "../static") + ((make-url->path "static") (struct-copy url u [path (cdr (url-path u))]))) #:path->mime-type (lambda (u)