runtime-path

svn: r13334
This commit is contained in:
Jay McCarthy 2009-01-31 15:27:11 +00:00
parent b9fc08e5d9
commit 7e8883fcc6
2 changed files with 8 additions and 10 deletions

View File

@ -19,7 +19,7 @@
(define new-namespace (make-base-empty-namespace))
(define additional-names (map get-name additional-specs))
(parameterize ([current-namespace new-namespace])
(namespace-require 'scheme/base)
(namespace-require 'scheme)
(for-each (lambda (name)
(with-handlers ([exn? void])
(when name

View File

@ -7,19 +7,15 @@
scheme/unit
net/tcp-unit
net/tcp-sig
scheme/runtime-path
net/ssl-tcp-unit)
(require web-server/web-server
web-server/managers/lru
web-server/managers/manager
web-server/private/servlet
web-server/configuration/namespace
web-server/private/cache-table
web-server/http
web-server/private/util
web-server/configuration/responders
web-server/dispatchers/dispatch
web-server/private/mime-types
web-server/configuration/configuration-table
web-server/servlet/setup
(prefix-in lift: web-server/dispatchers/dispatch-lift)
(prefix-in fsmap: web-server/dispatchers/filesystem-map)
@ -41,6 +37,10 @@
(div ([class "title"]) "Server Stopped")
(p "Return to DrScheme.")))))))
(define-runtime-path default-web-root
(list 'lib
"web-server/default-web-root"))
(provide/contract
[serve/servlet (((request? . -> . response/c))
(#:command-line? boolean?
@ -110,7 +110,7 @@
#:servlet-namespace
[servlet-namespace empty]
#:server-root-path
[server-root-path (directory-part default-configuration-table-path)]
[server-root-path default-web-root]
#:extra-files-paths
[extra-files-paths (list (build-path server-root-path "htdocs"))]
#:servlets-root
@ -125,9 +125,7 @@
[mime-types-path (let ([p (build-path server-root-path "mime.types")])
(if (file-exists? p)
p
(build-path
(directory-part default-configuration-table-path)
"mime.types")))]
(build-path default-web-root "mime.types")))]
#:log-file
[log-file #f]