# Zola Serve - CLI with skip folder

**URL:** <https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065>\
**Category:** Uncategorized\
**Created:** [February 27, 2024, 3:31pm UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065 "2024-02-27T15:31:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sr2ds](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/sr2ds/32/1183_2.png) [@sr2ds](https://zola.discourse.group/u/sr2ds)\
**Post date:** [February 27, 2024, 3:31pm UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065/1 "2024-02-27T15:31:55Z")

</div>

Hello,

I’m working with +50K posts and is hard to wait for serve re-load when something is changed.

Is possible setup the places of the Listening for changes of the command `zola serve`?

Thanks

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [February 27, 2024, 5:11pm UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065/2 "2024-02-27T17:11:18Z")

</div>

Have you tried `zola serve --fast`?

---

<div class="post-metadata">

**Author:** ![sr2ds](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/sr2ds/32/1183_2.png) [@sr2ds](https://zola.discourse.group/u/sr2ds)\
**Post date:** [February 27, 2024, 7:55pm UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065/3 "2024-02-27T19:55:09Z")

</div>

Thanks for your answer.  
I tried but is not better, the same slow way in my case.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [February 28, 2024, 7:38am UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065/4 "2024-02-28T07:38:25Z")

</div>

What are you changing, a template? --fast only renders the current markdown being edited. If you change the templates we do need to re-render everything

---

<div class="post-metadata">

**Author:** ![sr2ds](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/sr2ds/32/1183_2.png) [@sr2ds](https://zola.discourse.group/u/sr2ds)\
**Post date:** [February 28, 2024, 8:05am UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065/5 "2024-02-28T08:05:16Z")

</div>

Wow good point! Yes, I’m changing the templates.

---

<div class="post-metadata">

**Author:** ![adrianboston](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/adrianboston/32/907_2.png) [@adrianboston](https://zola.discourse.group/u/adrianboston)\
**Post date:** [February 29, 2024, 1:16am UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065/6 "2024-02-29T01:16:34Z")

</div>

Sounds like a solution might be renaming those +50K `.md` files for a bit while sprucing up templates.

`for f in *.md; do mv -- "$f" "${f%.md}.md-keep"; done`

---

<div class="post-metadata">

**Author:** ![sr2ds](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/sr2ds/32/1183_2.png) [@sr2ds](https://zola.discourse.group/u/sr2ds)\
**Post date:** [February 29, 2024, 10:00am UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065/7 "2024-02-29T10:00:00Z")

</div>

Thanks Adrian.

Yes, I’m doing it. Moving the folder to outside content directory:

`mv content/blog blog`

And to back:

`mv blog content/blog`

It works, but I need to move every time, if the option to skip was available would be more simple. But its ok.

---

<div class="post-metadata">

**Author:** ![adrianboston](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/adrianboston/32/907_2.png) [@adrianboston](https://zola.discourse.group/u/adrianboston)\
**Post date:** [March 1, 2024, 6:31am UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065/8 "2024-03-01T06:31:08Z")

</div>

Can you test on a few .md files.

I often use a `Makefile` with a different config file.  
Perhaps you can take advantage of the `ignored_content` directory in the config file. Remove it for config\_prod

```auto
# A list of glob patterns specifying asset files to ignore when the content
# directory is processed. Defaults to none, which means that all asset files are
# copied over to the `public` directory.
# Example:
# ignored_content = ["*.{graphml,xlsx}", "temp.*", "**/build_folder"]

```

Makefile

```auto

build:
	$(ZOLA) build

build-prod:
	$(ZOLA) --config $(CONFIG_PROD) build

```

---

<div class="post-metadata">

**Author:** ![sr2ds](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/sr2ds/32/1183_2.png) [@sr2ds](https://zola.discourse.group/u/sr2ds)\
**Post date:** [March 1, 2024, 9:32am UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065/9 "2024-03-01T09:32:49Z")

</div>

Thank you very much Adrian!

I managed to do this, now I have the second config file to handle the prod settings.  
I didn’t need the Makefile, I just configured my prod build to use the new configuration and everything is fine.  
I took advantage and cleaned up and organized my config file to make it simpler and easier.  
My problem has now been resolved, thank you very much

---

<div class="post-metadata">

**Author:** ![adrianboston](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/adrianboston/32/907_2.png) [@adrianboston](https://zola.discourse.group/u/adrianboston)\
**Post date:** [March 1, 2024, 6:22pm UTC](https://zola.discourse.group/t/zola-serve-cli-with-skip-folder/2065/10 "2024-03-01T18:22:55Z")

</div>

All right. Good stuff.  
But come one. Embrace the old school.
