# Deploy Ember-CLI on Digital Ocean/Dokku Droplet

**URL:** <https://discuss.emberjs.com/t/deploy-ember-cli-on-digital-ocean-dokku-droplet/6362>\
**Category:** Ember CLI\
**Created:** [September 27, 2014, 6:25pm UTC](https://discuss.emberjs.com/t/deploy-ember-cli-on-digital-ocean-dokku-droplet/6362 "2014-09-27T18:25:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![startup](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@startup](https://discuss.emberjs.com/u/startup)\
**Post date:** [September 27, 2014, 6:25pm UTC](https://discuss.emberjs.com/t/deploy-ember-cli-on-digital-ocean-dokku-droplet/6362/1 "2014-09-27T18:25:38Z")

</div>

> **[Ember-CLI Dokku Deployment: Buildpack? Copy Dist Folder? Pre-build Docker...](https://www.digitalocean.com/community/questions/ember-cli-dokku-deployment-buildpack-copy-dist-folder-pre-build-docker-image)**
>
> I’m looking to deploy Ember-CLI Apps using a Dokku Droplet. Has anyone created a Dokku BuildPack for Ember? Does running 'ember serve --environment…

If anyone has experience or suggestions related to this topic, feel free to chime in. This is not a lazy plea to get others to do the work for me as i’ve searched hundreds of different web pages, read countless different opinions and there doesn’t seem to be a combination of events that can be ran that works with all the current variables.

As things are moving rapidly with ember-cli and ideologies change, this is to be expected, but a stable way to deploy and utilize Dokku without requiring Heroku would be a great service to the Ember-CLI community.

If anyone will answer the call on this, i’ll promise to convert 5 other tutorials to the latest ember-cli with step by step instructions for getting RESULTS.

---

<div class="post-metadata">

**Author:** ![ulisesrmzroche](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ulisesrmzroche/32/11317_2.png) [@ulisesrmzroche](https://discuss.emberjs.com/u/ulisesrmzroche)\
**Post date:** [September 27, 2014, 8:11pm UTC](https://discuss.emberjs.com/t/deploy-ember-cli-on-digital-ocean-dokku-droplet/6362/2 "2014-09-27T20:11:31Z")

</div>

When you run `ember build --environment production`, you get a single distributable that contains an index.html file with html/css/javascript. In your case, you should not use `ember serve` for powering your production app. Using --production is more for previewing than anything else. Instead, serve the actual index.html and accompanying assets.

---

<div class="post-metadata">

**Author:** ![hugoruscitti](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/hugoruscitti/32/9976_2.png) [@hugoruscitti](https://discuss.emberjs.com/u/hugoruscitti)\
**Post date:** [February 13, 2016, 8:57pm UTC](https://discuss.emberjs.com/t/deploy-ember-cli-on-digital-ocean-dokku-droplet/6362/3 "2016-02-13T20:57:31Z")

</div>

Hi @startup, i make a simple example of ember-cli running (or deploying) over dokku on digital ocean.

You can start with a initial ember project folder and then create a `.env` file with this content:

```auto
export BUILDPACK_URL='https://github.com/tonycoco/heroku-buildpack-ember-cli.git' 

```

then create a dokku application, and finally do `git push dokku master`.

You will find more details in my demo project: [https://github.com/hugoruscitti/ember-on-dokku](https://github.com/hugoruscitti/ember-on-dokku)
