# Local theme development

**URL:** <https://forum.ghost.org/t/local-theme-development/6984>\
**Category:** Developer help\
**Created:** [April 24, 2019, 2:13pm UTC](https://forum.ghost.org/t/local-theme-development/6984 "2019-04-24T14:13:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![omisnomis](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@omisnomis](https://forum.ghost.org/u/omisnomis)\
**Post date:** [April 24, 2019, 2:13pm UTC](https://forum.ghost.org/t/local-theme-development/6984/1 "2019-04-24T14:13:00Z")

</div>

I would like to do some Theme development locally but, for obvious reasons, I want to be able to use my live data.

My thinking is that I can create some SSH tunnels to my production box, and just set the appropriate configuration options to use the ports I assign to the tunnels.

This is where I’m getting stuck - I’m assuming I will need to run a local instance of Ghost CMS, which isn’t an issue, but where can I configure the mysql port so I can use my live data?

---

<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:** [April 24, 2019, 3:10pm UTC](https://forum.ghost.org/t/local-theme-development/6984/2 "2019-04-24T15:10:27Z")

</div>

Does your data have to be real-time live? If not, you can just export your content from production and import it into local.

You can configure your database config via the cli:

[https://docs.ghost.org/api/ghost-cli/config/](https://docs.ghost.org/api/ghost-cli/config/)

---

<div class="post-metadata">

**Author:** ![omisnomis](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@omisnomis](https://forum.ghost.org/u/omisnomis)\
**Post date:** [April 24, 2019, 4:18pm UTC](https://forum.ghost.org/t/local-theme-development/6984/3 "2019-04-24T16:18:07Z")

</div>

It doesn’t have to be real time update no, but I was hoping up to avoid having to do the theme development by running everything and then manually importing the theme every time.

Is there no way to develop the theme in isolation, with data, to avoid uploading it every time to see what impact it has?

---

<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:** [April 24, 2019, 5:07pm UTC](https://forum.ghost.org/t/local-theme-development/6984/4 "2019-04-24T17:07:37Z")

</div>

> [@omisnomis](#):
>
> manually importing the theme every time.

I don’t follow what you’re asking 🤔

---

<div class="post-metadata">

**Author:** ![omisnomis](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@omisnomis](https://forum.ghost.org/u/omisnomis)\
**Post date:** [April 24, 2019, 5:22pm UTC](https://forum.ghost.org/t/local-theme-development/6984/5 "2019-04-24T17:22:44Z")

</div>

Unless I’m missing something critical in my thought process… when I want to make a change to a theme (e.g. casper), i make the change, zip it up and then upload the zipped file through the admin interface and then look at what the impact was live.

What I’m asking is if there is a way or running the theme in development mode or something, so I can see my changes without having to upload the zip file every time.

Does that make sense?

---

<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:** [April 24, 2019, 7:44pm UTC](https://forum.ghost.org/t/local-theme-development/6984/6 "2019-04-24T19:44:06Z")

</div>

I think it does - have you seen this section of the docs? I think it will give you a decent starter for theme development 🙂

> **[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:** ![omisnomis](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@omisnomis](https://forum.ghost.org/u/omisnomis)\
**Post date:** [April 24, 2019, 8:31pm UTC](https://forum.ghost.org/t/local-theme-development/6984/7 "2019-04-24T20:31:30Z")

</div>

I haven’t, but I’ll take a look thanks 👍

---

<div class="post-metadata">

**Author:** ![omisnomis](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@omisnomis](https://forum.ghost.org/u/omisnomis)\
**Post date:** [April 25, 2019, 7:19am UTC](https://forum.ghost.org/t/local-theme-development/6984/8 "2019-04-25T07:19:35Z")

</div>

That looks like what I was after, thanks!

---

<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 9, 2019, 7:19am UTC](https://forum.ghost.org/t/local-theme-development/6984/9 "2019-05-09T07:19:39Z")

</div>

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