# Any recommendations for hosting elm examples?

**URL:** https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652
**Category:** Learn
**Created:** [August 17, 2018, 3:44pm UTC](https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652 "2018-08-17T15:44:37Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![rupert](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rupert/32/1775_2.png) [@rupert](https://discourse.elm-lang.org/u/rupert)
#### Post date: [August 17, 2018, 3:44pm UTC](https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652/1 "2018-08-17T15:44:38Z")

</div>

I have seen this one mentioned a couple of times on Slack?

> **[About ZEIT](https://zeit.co/about)**
>
> We build products for developers and designers. And those who aspire to become one.

Has anyone a recommended way of publishing elm examples? So I can put up bigger pieces of work than a typically Ellie to share demos. Maybe someone has a build script to share that publishes an example?

---

<div class="post-metadata">

### Author: ![Sidney](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/sidney/32/3290_2.png) [@Sidney](https://discourse.elm-lang.org/u/Sidney)
#### Post date: [August 17, 2018, 4:54pm UTC](https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652/2 "2018-08-17T16:54:04Z")

</div>

If you’ve got static content, Github Pages is convenient and pretty easy to use. (There are NPM packages that will automate the deploy process – try searching for `gh pages deploy`).

If you need server-side processing with the language of your choice, the only free solution I know of is Heroku (edit:) and Zeit (but they’re limited). For paid solutions, Zeit’s Now, Heroku, and Digital Ocean are all great. I believe Ellie uses Zeit’s Now.

---

<div class="post-metadata">

### Author: ![rupert](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rupert/32/1775_2.png) [@rupert](https://discourse.elm-lang.org/u/rupert)
#### Post date: [August 17, 2018, 5:04pm UTC](https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652/3 "2018-08-17T17:04:39Z")

</div>

Thanks, Github pages will do nicely, don’t need any server-side.

---

<div class="post-metadata">

### Author: ![joakin](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/joakin/32/171_2.png) [@joakin](https://discourse.elm-lang.org/u/joakin)
#### Post date: [August 17, 2018, 6:37pm UTC](https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652/4 "2018-08-17T18:37:43Z")

</div>

I usually use [https://www.npmjs.com/package/gh-pages](https://www.npmjs.com/package/gh-pages) with the [Command line utility](https://www.npmjs.com/package/gh-pages#command-line-utility) docs method:

```json
{
  "scripts": {
    "deploy": "gh-pages -d public"
  }
}

```

---

<div class="post-metadata">

### Author: ![fizwidget](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/fizwidget/32/920_2.png) [@fizwidget](https://discourse.elm-lang.org/u/fizwidget)
#### Post date: [August 18, 2018, 1:13am UTC](https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652/5 "2018-08-18T01:13:48Z")

</div>

+1 for Github pages. I’ve hacked together a [deployment script](https://github.com/fizwidget/game-of-life/blob/master/scripts/deploy.sh) for using it in my projects, but sounds like I could replace that with the gh-pages util mentioned above!

---

<div class="post-metadata">

### Author: ![mattpiz](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/mattpiz/32/860_2.png) [@mattpiz](https://discourse.elm-lang.org/u/mattpiz)
#### Post date: [August 18, 2018, 3:07am UTC](https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652/6 "2018-08-18T03:07:17Z")

</div>

By the way, it is not for permanent hosting, but if you want to show an elm app of yours for a few minutes to a friend not on the same local network than you, ngrok is awesome. You just start your local server, say `python -m http.server 8888`, then you start ngrok, `ngrok http 8888` and in few seconds it gives you a generated address like `http://b938248cd.ngrok.io` that you can share with your friends and is a realtime proxy to your local server. There are of course limitations (nb connections, etc.) but for the use case of just showing temporarily to friend / collegue for demo, I find it perfect.

---

<div class="post-metadata">

### Author: ![joakin](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/joakin/32/171_2.png) [@joakin](https://discourse.elm-lang.org/u/joakin)
#### Post date: [August 18, 2018, 11:14am UTC](https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652/7 "2018-08-18T11:14:23Z")

</div>

> [@mattpiz](#):
>
> ngrok is awesome

Shout out to [`localtunnel`](https://www.npmjs.com/package/localtunnel) too as a ngrok alternative, great tools!

---

<div class="post-metadata">

### Author: ![edkv](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@edkv](https://discourse.elm-lang.org/u/edkv)
#### Post date: [August 18, 2018, 4:08pm UTC](https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652/8 "2018-08-18T16:08:40Z")

</div>

@rupert Firebase is also a good option

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)
#### Post date: [August 28, 2018, 4:08pm UTC](https://discourse.elm-lang.org/t/any-recommendations-for-hosting-elm-examples/1652/9 "2018-08-28T16:08:45Z")

</div>

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