Skip to content

Commit

Permalink
Improve docs post
Browse files Browse the repository at this point in the history
  • Loading branch information
holyjak committed Oct 5, 2021
1 parent e4e618f commit 65b39b3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/leiningen/new/cryogen/md/posts/2020-12-03-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:

```
Expand Down

0 comments on commit 65b39b3

Please sign in to comment.