Created
August 29, 2014 22:06
-
-
Save kschrader/218ae226c5ec906417cf to your computer and use it in GitHub Desktop.
Webserver startup function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(start [component] | |
(println ";; Starting new webserver") | |
(let [c (assoc component | |
:webserver (immutant/run (app database) {:host "0.0.0.0" :port port}))] | |
(println (str ";; Started webserver on port " port)) | |
c)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment