# Discourse on Github Codespaces not working

**URL:** https://meta.discourse.org/t/discourse-on-github-codespaces-not-working/230179
**Category:** Development
**Created:** [June 16, 2022, 2:12pm UTC](https://meta.discourse.org/t/discourse-on-github-codespaces-not-working/230179 "2022-06-16T14:12:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![reinier](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/reinier/32/263894_2.png) [@reinier](https://meta.discourse.org/u/reinier)
#### Post date: [June 16, 2022, 2:12pm UTC](https://meta.discourse.org/t/discourse-on-github-codespaces-not-working/230179/1 "2022-06-16T14:12:30Z")

</div>

I’ve tried to run Discourse in Github Codespaces and it seems to get stuck somewhere.

The creation log ends with these lines:

```plaintext
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/ensure-database
Started runsvdir, PID is 231

```

But the url that is available in the ports tab gives a 502 Bad Gateway.

Also the state of the terminal seems like it’s still doing something.

`Running postStartCommand...`

I haven’t found any docs about it, but there seems to be some support for it according to [this message](https://review.discourse.org/t/feature-support-for-github-codespaces-development-pr-11440/17584/3) and the .devcontainer directory.

Does it still work? Are there any steps I need to take to make it work?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 16, 2022, 2:42pm UTC](https://meta.discourse.org/t/discourse-on-github-codespaces-not-working/230179/2 "2022-06-16T14:42:03Z")

</div>

I tested it when I first added support for it years ago. Recently @cvx was working on it, any ideas ?

---

<div class="post-metadata">

### Author: ![cvx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cvx/32/152146_2.png) [@cvx](https://meta.discourse.org/u/cvx)
#### Post date: [June 20, 2022, 11:58am UTC](https://meta.discourse.org/t/discourse-on-github-codespaces-not-working/230179/3 "2022-06-20T11:58:40Z")

</div>

I think everything should be working fine – the only step you’re missing is starting the server 😃

Switch to the other terminal tab (`bash`):

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/e/2/0e20782ab7abda3a1572754ad26458999a29dda8.jpeg)

and run: `bin/ember-cli -u`

After it starts you can open the site by cmd-clicking/ctrl-clicking the URL in the output:

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/9/a/09a6983db27e6ca07a9ad1f8ae3f86d52e3b123d.png)

And you’re done!

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/7/e/57e5681b68823ef6b657c56098b339b870527663.jpeg)

* * *

I think we can streamline it a bit more. There’s definitely room for improvement!

---

<div class="post-metadata">

### Author: ![reinier](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/reinier/32/263894_2.png) [@reinier](https://meta.discourse.org/u/reinier)
#### Post date: [June 24, 2022, 12:43pm UTC](https://meta.discourse.org/t/discourse-on-github-codespaces-not-working/230179/4 "2022-06-24T12:43:34Z")

</div>

> [@cvx](#):
>
> bin/ember-cli -u

Thanks, that did the trick!

---

<div class="post-metadata">

### Author: ![cvx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cvx/32/152146_2.png) [@cvx](https://meta.discourse.org/u/cvx)
#### Post date: [June 24, 2022, 5:35pm UTC](https://meta.discourse.org/t/discourse-on-github-codespaces-not-working/230179/5 "2022-06-24T17:35:58Z")

</div>


