cryogen-project / cryogen

A simple static site generator written in Clojure
http://cryogenweb.org/
Eclipse Public License 1.0
1.09k stars 96 forks source link

How to change the port for `lein serve` #232

Closed NobbZ closed 2 years ago

NobbZ commented 3 years ago

I expected changing {:port 3000} to {:port 9800} would change the port to bind to, though…

Still lein serve tries to bind to port 3000 wich is already in used on my system.

qdhaiqiang commented 3 years ago

The same requirement.

qdhaiqiang commented 3 years ago

@NobbZ You can change in source src/cryogen/server.clj

image

NobbZ commented 3 years ago

Yeah I found it myself, though its weird that there is some setting in the generated project.clj that is then ignored and needs to be changed somewhere else…

Anyway. For me it was just a short experiment, and I left CLJ

holyjak commented 2 years ago

there is some setting in the generated project.clj that is then ignored

I do not see such setting in the generated project.clj?!

Anyway, the question seems to be answered so closing for the time being. Feel free to reopen if you have more to say.