add the ability to configure port
This commit is contained in:
parent
eaf58ec580
commit
71a8d771ca
2 changed files with 20 additions and 8 deletions
|
|
@ -246,7 +246,7 @@ let routes =
|
|||
[ get_ "/:thread_id" thread_get; post "/:thread_id" reply_post ]
|
||||
|
||||
let () =
|
||||
Dream.run ~port:3696 @@ Dream.logger @@ Dream.cookie_sessions
|
||||
Dream.run ~port:App.port @@ Dream.logger @@ Dream.cookie_sessions
|
||||
(* this should replace memory/cookie sessions but it doesn't work :-(
|
||||
@@ Dream.sql_pool Db.db_uri
|
||||
@@ Dream.sql_sessions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue