# Do I really need to stop start every template edit?

**URL:** <https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905>\
**Category:** Self-hosting\
**Created:** [March 7, 2023, 4:47pm UTC](https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905 "2023-03-07T16:47:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Knight](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mark_knight/32/23458_2.png) [@Mark\_Knight](https://forum.ghost.org/u/Mark_Knight)\
**Post date:** [March 7, 2023, 4:47pm UTC](https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905/1 "2023-03-07T16:47:43Z")

</div>

Hello, I can only assume i’m doing something wrong. To get the changes to to .hbs files to appear in browser, I need to stop then start ghost? I thought using ‘ghost run’ would stop this happening.

I also then need to chmod files back to ghost as I have to root in to the VM to be able to overwrite.

It’s quite frustrating as editing the templates has been really straightforward and Ghost itself is amazing. Any ideas? Or should I just make a script to automate?

Cheers

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [March 7, 2023, 6:41pm UTC](https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905/2 "2023-03-07T18:41:31Z")

</div>

This is not my experience, so I suspect you’re editing directly in the Ghost folders. Any edits I make, are uploaded in the theme file (zip), and this process checks for errors and makes the changes live.

---

<div class="post-metadata">

**Author:** ![Mark\_Knight](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mark_knight/32/23458_2.png) [@Mark\_Knight](https://forum.ghost.org/u/Mark_Knight)\
**Post date:** [March 7, 2023, 7:51pm UTC](https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905/3 "2023-03-07T19:51:53Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/f/c/fc5f52c26fdf7d6bf229a88658dc33f3b2a09f3c.jpeg)

> **[CodeMirror](https://codemirror.net/)**
>
> In-browser code editor

Code mirror looks excellent, it looks like it can be installed into content/themes. Obviously, this method would make it easy to ‘brick’ the content side of the website. I will try it later and share my results.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 7, 2023, 7:54pm UTC](https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905/4 "2023-03-07T19:54:56Z")

</div>

If you’re running ghost in development mode, changes will automatically be picked up; in prod ghost uses template caching so changes wouldn’t be picked up

---

<div class="post-metadata">

**Author:** ![briankb](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/briankb/32/17679_2.png) [@briankb](https://forum.ghost.org/u/briankb)\
**Post date:** [March 8, 2023, 3:04am UTC](https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905/5 "2023-03-08T03:04:07Z")

</div>

In Production mode is the template cache necessary? How would a ghost site in dev mode on web for real visitors behave without the cache?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 8, 2023, 3:15am UTC](https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905/6 "2023-03-08T03:15:00Z")

</div>

It’s absolutely required, since the template has to be converted from text into javascript that’s later executed which in compute terms is expensive.

If you’re trying to make changes to your theme, the best thing you can do is install a local version of Ghost which uses a much simpler setup in dev mode and is designed exactly for this use case.

> **[How to install Ghost locally on Mac, PC or Linux](https://ghost.org/docs/install/local/)**
>
> A detailed local install guide for how to install the Ghost publishing platform on your computer running Mac, PC or Linux. Ideal for Ghost theme development.

---

<div class="post-metadata">

**Author:** ![briankb](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/briankb/32/17679_2.png) [@briankb](https://forum.ghost.org/u/briankb)\
**Post date:** [March 9, 2023, 5:57pm UTC](https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905/7 "2023-03-09T17:57:18Z")

</div>

Thank you for the additional information. I have it setup locally but don’t quite have the workflow working for me. I will get there.

---

<div class="post-metadata">

**Author:** ![Mark\_Knight](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mark_knight/32/23458_2.png) [@Mark\_Knight](https://forum.ghost.org/u/Mark_Knight)\
**Post date:** [March 14, 2023, 9:48pm UTC](https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905/8 "2023-03-14T21:48:45Z")

</div>

I didn’t finish trying the method above, but, I installed cockpit and then cockpit navigator on the VM ghost is on and you can edit the files in a text editor via a browser. It quickly went from a few changes to a huge amount of modification, so I used Github anyway.

---

<div class="post-metadata">

**Author:** ![briankb](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/briankb/32/17679_2.png) [@briankb](https://forum.ghost.org/u/briankb)\
**Post date:** [March 19, 2023, 7:50pm UTC](https://forum.ghost.org/t/do-i-really-need-to-stop-start-every-template-edit/36905/9 "2023-03-19T19:50:55Z")

</div>

You can also edit the files and restart Ghost via the [https://www.cloudron.io](https://www.cloudron.io) sysadmin system. I’ve been using it for years now, they keep their apps up to date.
