# Discourse on local pc

**URL:** https://meta.discourse.org/t/discourse-on-local-pc/201793
**Category:** Development
**Created:** [August 26, 2021, 12:19pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793 "2021-08-26T12:19:33Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![levi45](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@levi45](https://meta.discourse.org/u/levi45)
#### Post date: [August 26, 2021, 12:19pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/1 "2021-08-26T12:19:33Z")

</div>

Hi to all, how can I install Discourse on my local ubuntu pc for test purposes many thanks.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [August 26, 2021, 12:24pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/2 "2021-08-26T12:24:49Z")

</div>

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 26, 2021, 1:07pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/3 "2021-08-26T13:07:27Z")

</div>

You can also go this way with a Docker based install (that’s surprisingly performant on WSL for example)

> [@Install Discourse for development using Docker](https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009):
>
> Developing using Docker Since Discourse runs in Docker, you should be able to run Discourse directly from your source directory using a Discourse development container. white_check_mark Pros: No need to install any system dependencies, no configuration needed at all for setting up a development environment quickly. x Cons: Will be slightly slower than the native dev environment on Ubuntu, and much slower than a native install on MacOS. See also [Developing Discourse using a Dev Container](https://meta.discourse.org/t/developing-discourse-using-a-dev-container/336366) …

---

<div class="post-metadata">

### Author: ![levi45](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@levi45](https://meta.discourse.org/u/levi45)
#### Post date: [August 26, 2021, 1:51pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/4 "2021-08-26T13:51:52Z")

</div>

I have started to installing i got to this command ‘bundle exec rake autospec’  
taking long time ready 20 mins since this command given is that normal ?

---

<div class="post-metadata">

### Author: ![levi45](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@levi45](https://meta.discourse.org/u/levi45)
#### Post date: [August 26, 2021, 1:56pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/5 "2021-08-26T13:56:15Z")

</div>

Ok after 29 mins i got this screen and not doing anything else , what shall i do next thanks.

 ![Screenshot from 2021-08-26 14-54-42](https://global.discourse-cdn.com/meta/original/3X/e/2/e2f951ba5742983638a49f01491d6dc7b7f4a731.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 26, 2021, 1:57pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/6 "2021-08-26T13:57:56Z")

</div>

> [@levi45](#):
>
> bundle exec rake autospec

This is not mandatory, it’s just running the unit test bundled with Discourse.

> [@levi45](#):
>
> Ok after 29 mins i got this screen and not doing anything else , what shall i do next thanks.

Looks like a few tests failed in your case, I would not be too concerned.

Move on and run the server.

---

<div class="post-metadata">

### Author: ![levi45](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@levi45](https://meta.discourse.org/u/levi45)
#### Post date: [August 26, 2021, 2:20pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/7 "2021-08-26T14:20:10Z")

</div>

Very strange when i started the local server this what said

 ![Screenshot from 2021-08-26 15-14-04](https://global.discourse-cdn.com/meta/original/3X/4/5/45040f3db8a77f6fc41a415ee6d5988ec20290fa.png)

---

<div class="post-metadata">

### Author: ![levi45](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@levi45](https://meta.discourse.org/u/levi45)
#### Post date: [August 26, 2021, 2:20pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/8 "2021-08-26T14:20:43Z")

</div>

then i have give that command then i get this error  
 ![Screenshot from 2021-08-26 15-15-37](https://global.discourse-cdn.com/meta/original/3X/a/a/aac8e2d005eb7cf10e3fc7cf5c4d84845ca86809.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 26, 2021, 2:30pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/9 "2021-08-26T14:30:02Z")

</div>

> [@levi45](#):
>
> Very strange when i started the local server this what said

Not strange at all, this is a super modern feature. You need to run back-end server and ember front end server simultaneously in this mode.

Alternatively you can run without Ember-CLI like so:

` NO_EMBER_CLI=1 UNICORN_BIND_ALL=TRUE bin/rails s`

> [@levi45](#):
>
> then i have give that command then i get this error

Looks like you need to update `node` to a more modern version.

---

<div class="post-metadata">

### Author: ![levi45](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@levi45](https://meta.discourse.org/u/levi45)
#### Post date: [August 26, 2021, 2:45pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/10 "2021-08-26T14:45:38Z")

</div>

Thanks All up and running now 👏

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [November 29, 2023, 8:02am UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/11 "2023-11-29T08:02:59Z")

</div>

Just to add that the modern way of doing this now is:

`bin/ember-cli -u`

Which runs both rails and ember simultaneously

(In case anyone finds this)

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [November 29, 2023, 8:20am UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/12 "2023-11-29T08:20:29Z")

</div>

Hm. Running into

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/a/6/ea682111fbf8437b9d856acf0cf30935da53cae2.png)

Also using the old way described above.

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [December 14, 2023, 7:07pm UTC](https://meta.discourse.org/t/discourse-on-local-pc/201793/13 "2023-12-14T19:07:59Z")

</div>

> [@Need help in installation](https://meta.discourse.org/t/need-help-in-installation/288608/4):
>
> Hm. This happens when visiting http://localhost:3000/. In my case, discourse is running fine on http://localhost:4200/ nevertheless.
