Skip to content

Commit

Permalink
changed default port 8080 -> 5000.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Mar 17, 2011
1 parent e8702c2 commit e80b676
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Clack is a Web Application Environment for Common Lisp inspired by Python's WSGI
#'(lambda (req)
'(200 (:content-type "text/plain") ("Hello, Clack!"))))

Now access [http://localhost:8080/](http://localhost:8080/) and Clack may show you "Hello, Clack!".
Now access [http://localhost:5000/](http://localhost:5000/) and Clack may show you "Hello, Clack!".

## Installation

Expand Down
6 changes: 3 additions & 3 deletions src/core/clack.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ Example:
(clackup (lambda (req)
(declare (ignore req))
'(200 nil (\"ok\")))
:port 8080
:port 5000
:debug t)
"
@export
(defun clackup (app &key (server :hunchentoot) (port 8080) debug)
(defun clackup (app &key (server :hunchentoot) (port 5000) debug)
(let ((handler (find-handler server)))
(funcall (intern "RUN" handler) app
:port port
Expand All @@ -62,7 +62,7 @@ Clack main package just for convenience.
(clackup (lambda (req)
(declare (ignore req))
'(200 nil (\"Hello, Clack!\")))
:port 8080
:port 5000
:debug t)
"

Expand Down
4 changes: 2 additions & 2 deletions src/core/handler/hunchentoot.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*default-content-type* "text/html; charset=utf-8"))

@export
(defun run (app &key debug (port 8080))
(defun run (app &key debug (port 5000))
"Start Hunchentoot server."
(initialize)
(when debug
Expand Down Expand Up @@ -173,7 +173,7 @@ Clack.Handler.Hunchentoot - Clack handler for Hunchentoot.
;; Start Server
(run (lambda (req)
'(200 nil (\"ok\")))
:port 8080)
:port 5000)
"

@doc:DESCRIPTION "
Expand Down

0 comments on commit e80b676

Please sign in to comment.