From 65b39b3785259adbf6e462e9a51143e243a6e04d Mon Sep 17 00:00:00 2001 From: Jakub Holy Date: Tue, 5 Oct 2021 09:38:18 +0200 Subject: [PATCH] Improve docs post --- .../new/cryogen/md/posts/2020-12-03-docs.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/leiningen/new/cryogen/md/posts/2020-12-03-docs.md b/src/leiningen/new/cryogen/md/posts/2020-12-03-docs.md index 31c6154..51fb4ea 100644 --- a/src/leiningen/new/cryogen/md/posts/2020-12-03-docs.md +++ b/src/leiningen/new/cryogen/md/posts/2020-12-03-docs.md @@ -34,10 +34,12 @@ A new site can be created using the Cryogen template as follows: lein new cryogen my-blog ``` -or, alternatively, using [`clj-new`](https://github.com/seancorfield/clj-new/) (and having defined the `new` profile, as it suggests): +or, alternatively, using `clj-new as a tool`](https://github.com/seancorfield/clj-new#installation-as-a-tool): ``` -clojure -X:new create :template cryogen :name me.my-blog +clojure -Ttools install com.github.seancorfield/clj-new '{:git/tag "v1.2.362"}' :as clj-new # update to latest! +clojure -Tclj-new create :template cryogen :name myname/myblog :force true +cd myname/myblog/ ``` ### Running the Server @@ -56,6 +58,12 @@ clojure -X:serve # or clojure -X:serve:fast The server will watch for changes in the `content` and `themes` folders and recompile the content automatically. The `*:fast` variants perform [fast but partial compilation](https://cryogenweb.org/docs/fast-compilation.html) of only the changed page/post. +#### Changing the port + +You can either change the hard-coded port in `deps.edn` / `server.clj` or override it by setting the PORT env var. + +### Building the static site + You can also generate the content without bringing up a server either via: ```