# Discourse deployment using github or bitbucket?

**URL:** https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579
**Category:** Development
**Created:** [October 7, 2017, 12:23pm UTC](https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579 "2017-10-07T12:23:49Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![eldy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eldy/32/119728_2.png) [@eldy](https://meta.discourse.org/u/eldy)
#### Post date: [October 7, 2017, 12:23pm UTC](https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579/1 "2017-10-07T12:23:49Z")

</div>

I think I’ve installed discourse wrongly. I simply do git clone into my server.

If I want to modify the handlebar template like insert an ad, how do I do it now? I go into my server and cd to var/discourse, I can barely find anything, I couldn’t the template files.

What am I suppose to do should be clone a copy of discourse first into my local and git clone a copy of my local copy to my server, correct?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 7, 2017, 1:30pm UTC](https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579/2 "2017-10-07T13:30:10Z")

</div>

No. If you would like to run discourse, and get help here, you need to make your modifications by creating plugins.

There are several topics about how to create them.

---

<div class="post-metadata">

### Author: ![eldy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eldy/32/119728_2.png) [@eldy](https://meta.discourse.org/u/eldy)
#### Post date: [October 7, 2017, 2:26pm UTC](https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579/3 "2017-10-07T14:26:38Z")

</div>

so everything is plugin based? What if I want to push 1px up of the logo using css? Even that I have to install plugin?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 7, 2017, 2:29pm UTC](https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579/4 "2017-10-07T14:29:22Z")

</div>

Before modifying the code, you might spend a few minutes looking at the admin interface.

See Admin/customize

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [October 7, 2017, 2:44pm UTC](https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579/5 "2017-10-07T14:44:23Z")

</div>

Technically speaking, any CSS changes can easily be done in Admin \> Customize. You can also modify templates with a bit more work using JavaScript. However, if you want to modify templates to an extreme level, you are better off writing a plugin to do it.

---

<div class="post-metadata">

### Author: ![eldy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eldy/32/119728_2.png) [@eldy](https://meta.discourse.org/u/eldy)
#### Post date: [October 7, 2017, 4:02pm UTC](https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579/6 "2017-10-07T16:02:16Z")

</div>

I already did, I couldn’t find any place to insert custom css, I only see option to change color.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 7, 2017, 4:05pm UTC](https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579/7 "2017-10-07T16:05:08Z")

</div>

See [yoursite.com](https://yoursite.com/admin/customize/themes)

Rather than editing the default themes you should create new ones and make them child themes of the main ones.

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/3/63218b33817d338866daf9a5bf54b947552497c8.png)

---

<div class="post-metadata">

### Author: ![eldy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eldy/32/119728_2.png) [@eldy](https://meta.discourse.org/u/eldy)
#### Post date: [October 8, 2017, 8:16am UTC](https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579/8 "2017-10-08T08:16:09Z")

</div>

I can put custom css when I created a new child theme on my site? or I still have to touch code on server?

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [October 8, 2017, 9:47am UTC](https://meta.discourse.org/t/discourse-deployment-using-github-or-bitbucket/71579/9 "2017-10-08T09:47:12Z")

</div>

The correct way to build a new theme is this [Structure of themes and theme components](https://meta.discourse.org/t/how-to-develop-custom-themes/60848), but it’s not mandatory. For minor changes to the style you can simply create a New stylesheet and add it to another theme as a component, no need to touch the code on server.

Use the search function here, you’ll find a lot of discussions for themes.
