# Push to digital ocean from command line and rebuild

**URL:** https://meta.discourse.org/t/push-to-digital-ocean-from-command-line-and-rebuild/61931
**Category:** Self-hosting
**Created:** [2 במאי,‏ 2017,‏ 6:13am UTC](https://meta.discourse.org/t/push-to-digital-ocean-from-command-line-and-rebuild/61931 "2017-05-02T06:13:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MatthiasRMS](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@MatthiasRMS](https://meta.discourse.org/u/MatthiasRMS)
#### Post date: [2 במאי,‏ 2017,‏ 6:13am UTC](https://meta.discourse.org/t/push-to-digital-ocean-from-command-line-and-rebuild/61931/1 "2017-05-02T06:13:34Z")

</div>

Hi !

I’ve followed the [official install](https://meta.discourse.org/t/142537?silent=true) guide and I managed to have discourse working on digital ocean.  
However, I couldn’t find how to setup a regular deployment flow (I’m not very familiar with docker and digital ocean).

I have discourse running locally (without docker), and running on digital ocean. How can I deploy my changes to the droplet ? Can I setup automatic deployment from github or can I simply deploy from the command line ? Do I need to rebuild discourse afterwards to see the changes ?

Thanks for your help

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2 במאי,‏ 2017,‏ 6:26am UTC](https://meta.discourse.org/t/push-to-digital-ocean-from-command-line-and-rebuild/61931/2 "2017-05-02T06:26:46Z")

</div>

Are you doing modifications in the Discourse core and like to deploy it?

---

<div class="post-metadata">

### Author: ![MatthiasRMS](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@MatthiasRMS](https://meta.discourse.org/u/MatthiasRMS)
#### Post date: [2 במאי,‏ 2017,‏ 6:50am UTC](https://meta.discourse.org/t/push-to-digital-ocean-from-command-line-and-rebuild/61931/3 "2017-05-02T06:50:52Z")

</div>

I’m “customizing” some elements. I need to integrate a few things that aren’t feasible “out of the box”. I’ve spent a lot of time working with rails and it’s not big changes. Works fine locally. Now I don’t know how to deploy it on my digital ocean droplet (which uses docker).

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2 במאי,‏ 2017,‏ 7:03am UTC](https://meta.discourse.org/t/push-to-digital-ocean-from-command-line-and-rebuild/61931/4 "2017-05-02T07:03:28Z")

</div>

Customizing Discourse core is not recommended. And official docker installation does not have easy way deploy it. To do modifications the best ways are

1. [Admin side customizations](https://meta.discourse.org/t/better-documentation-of-tabs-in-admin-customize-css-html/49171/3)
2. [Custom themes](https://meta.discourse.org/t/how-to-develop-custom-themes/60848)
3. [Plugins](https://meta.discourse.org/t/beginners-guide-to-creating-discourse-plugins-part-1/30515)

All these ways are easily maintainable and supporting docker.
