# 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:** 1\
**Showing post:** 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?

---

_[View the full topic](https://meta.discourse.org/t/discourse-on-github-codespaces-not-working/230179)._
