# Why does ghost-cli installation has two folders with the same name \`current\`?

**URL:** <https://forum.ghost.org/t/why-does-ghost-cli-installation-has-two-folders-with-the-same-name-current/7245>\
**Category:** Developer help\
**Created:** [May 10, 2019, 3:32pm UTC](https://forum.ghost.org/t/why-does-ghost-cli-installation-has-two-folders-with-the-same-name-current/7245 "2019-05-10T15:32:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxkoretskyi](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maxkoretskyi](https://forum.ghost.org/u/maxkoretskyi)\
**Post date:** [May 10, 2019, 3:32pm UTC](https://forum.ghost.org/t/why-does-ghost-cli-installation-has-two-folders-with-the-same-name-current/7245/1 "2019-05-10T15:32:38Z")

</div>

I’ve just ran `ghost install local` and got the following directory structure with very similar `content` folders:

```
content <==========================
     apps
     data
     images
      ...
current
versions
   2.22.0
       content <=====================
            data
            images
            ...
       core
       ...

```

My question is why do we need both? I tried renaming each one but it seems they are all required to run ghost. After I’ve renamed the top level `content` ghost couldn’t start. After I’ve renamed the folder inside the current ghost version I got 500 saying that `the currently active theme "casper" is missing`.

Can anyone please clarify?

---

<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:** [May 10, 2019, 4:43pm UTC](https://forum.ghost.org/t/why-does-ghost-cli-installation-has-two-folders-with-the-same-name-current/7245/2 "2019-05-10T16:43:46Z")

</div>

The top level content folder is where your images and other user-generated content (including the db if you use sqlite) is stored. The version-level content folder is mainly used for developing Ghost, but also contains the latest release of casper. That way, if you’re using the default theme, you’ll always be up-to-date 🙂

---

<div class="post-metadata">

**Author:** ![maxkoretskyi](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maxkoretskyi](https://forum.ghost.org/u/maxkoretskyi)\
**Post date:** [May 10, 2019, 8:38pm UTC](https://forum.ghost.org/t/why-does-ghost-cli-installation-has-two-folders-with-the-same-name-current/7245/3 "2019-05-10T20:38:58Z")

</div>

Cool, thanks! So as I understand the top level `content` folder is where all my theme customizations should go, correct? I’ve now checked the the `content\themes\casper` and it’s a symlink pointing to `casper` inside the Ghost installation in `versions`.

I’ve also explored sources a little bit, the current theme seems to be defined in [core/server/data/schema/default-settings.json](https://github.com/TryGhost/Ghost/blob/53b300d7bf8ff451e23c35f86040fda55dacb886/core/server/data/schema/default-settings.json#L106). I assume you somehow deploy the new scheme using `Ghost-CLI` and it updates this value. Am I on the right path here? 🙂

---

<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:** [May 10, 2019, 8:41pm UTC](https://forum.ghost.org/t/why-does-ghost-cli-installation-has-two-folders-with-the-same-name-current/7245/4 "2019-05-10T20:41:52Z")

</div>

> [@maxkoretskyi](#):
>
> Cool, thanks! So as I understand the top level `content` folder is where all my theme customizations should go, correct?

That’s correct! While you can make direct changes to the symlinked casper theme, it’s usually suggested to clone it to another folder. If your active theme is invalid, ghost will fall back to the casper theme

> [@maxkoretskyi](#):
>
> I assume you somehow deploy the new scheme using `Ghost-CLI` and it updates this value. Am I on the right path here? 🙂

Nope - If you want to add or activate a theme, you do that in the admin interface! Once you get Ghost up and running, you usually shouldn’t need to make any file system changes, unless you’re upgrading ghost 🙂

---

<div class="post-metadata">

**Author:** ![maxkoretskyi](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maxkoretskyi](https://forum.ghost.org/u/maxkoretskyi)\
**Post date:** [May 12, 2019, 5:21pm UTC](https://forum.ghost.org/t/why-does-ghost-cli-installation-has-two-folders-with-the-same-name-current/7245/5 "2019-05-12T17:21:38Z")

</div>

> If you want to add or activate a theme, you do that in the admin interface! Once you get Ghost up and running, you usually shouldn’t need to make any file system changes, unless you’re upgrading ghost

Yep, thanks. Just found it that setting a new theme through admin interface updates the `value` in the `settings` database for the key `active_theme`. It does it inside [core/server/api/v2/themes.js](https://github.com/TryGhost/Ghost/blob/cb322fc1be8a5e79605c48f0793f37ea333c7f5c/core/server/api/v2/themes.js#L57) when the request to activate a new theme comes through.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [May 26, 2019, 5:21pm UTC](https://forum.ghost.org/t/why-does-ghost-cli-installation-has-two-folders-with-the-same-name-current/7245/6 "2019-05-26T17:21:48Z")

</div>

Closed on May 26, 2019, 5:21pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
