report the port

pull/9/head
Matthew Butterick 11 years ago
parent 2fffe88d83
commit 4472200ba7

@ -5,7 +5,8 @@
(require xml) (require xml)
(require "server-routes.rkt" "predicates.rkt" "debug.rkt") (require "server-routes.rkt" "predicates.rkt" "debug.rkt")
(message "Starting webserver") (define port-number 8088)
(message (format "Starting webserver at http://localhost:~a" port-number))
(define (logger req) (define (logger req)
(define client (request-client-ip req)) (define client (request-client-ip req))
@ -39,7 +40,7 @@
(message "Ready to rock") (message "Ready to rock")
(serve/servlet start (serve/servlet start
#:port 8088 #:port port-number
#:listen-ip #f #:listen-ip #f
#:servlet-regexp #rx"" ; respond to top level #:servlet-regexp #rx"" ; respond to top level
#:command-line? #t #:command-line? #t

Loading…
Cancel
Save