# I'm trying to run discourse app locally in production env without docker

**URL:** https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047
**Category:** Support
**Created:** [October 15, 2024, 8:34pm UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047 "2024-10-15T20:34:15Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Abdul\_Hanan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abdul_hanan/32/456073_2.png) [@Abdul\_Hanan](https://meta.discourse.org/u/Abdul_Hanan)
#### Post date: [October 15, 2024, 8:34pm UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047/1 "2024-10-15T20:34:15Z")

</div>

**Getting an error while running app in locally in production env.**  
dev/discourse/lib/discourse.rb:551:in  
`current\_hostname’: **uninitialized constant Discourse::SiteSetting (NameError)**

**Did you mean? Discourse::SiteSettingMissing**

from /Users/dev/discourse/config/initializers/100-verify\_config.rb:7:in `’

---

<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: [October 15, 2024, 8:44pm UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047/2 "2024-10-15T20:44:43Z")

</div>

Welcome to Meta.

Normally you’d run a _development_ install locally:

[https://meta.discourse.org/tags/intersection/how-to/dev-install](https://meta.discourse.org/tags/intersection/how-to/dev-install)

Running Production locally and without docker is not supported.

---

<div class="post-metadata">

### Author: ![Abdul\_Hanan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abdul_hanan/32/456073_2.png) [@Abdul\_Hanan](https://meta.discourse.org/u/Abdul_Hanan)
#### Post date: [October 15, 2024, 9:22pm UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047/3 "2024-10-15T21:22:51Z")

</div>

Thanks for your quick response.

So for production we need to go with docker ?

---

<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: [October 15, 2024, 9:26pm UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047/4 "2024-10-15T21:26:03Z")

</div>

you can do what you feel like, but getting support for other setups is going to be tricky unless you want to pay someone 🙂

There’s a fun project here using a cloudfare tunnel for running Discourse locally on a raspberry pi, which you might be able to replicate on WSL2 … but both in Docker.

> [@Discourse on a Raspberry Pi | Blog](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357):
>
> A long standing feature request from our community is finally here! As of today, you are able to host a complete Discourse instance in a $35 Raspberry Pi. You can go ahead and follow our [official install guide](https://github.com/discourse/discourse/tree/main/docs/INSTALL-cloud.md), and it will work out of the box in any recent Raspberry Pi model. This is a companion discussion topic for the original entry at [https://blog.discourse.org/2021/12/2021-12-07-discourse-on-a-raspberry-pi/](https://blog.discourse.org/2021/12/2021-12-07-discourse-on-a-raspberry-pi/)

---

<div class="post-metadata">

### Author: ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)
#### Post date: [October 16, 2024, 6:08am UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047/5 "2024-10-16T06:08:28Z")

</div>

> [@Abdul\_Hanan](#):
>
> So for production we need to go with docker ?

Our supported install for production is documented here: [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md).

For development, use [Topics tagged how-to & dev-install](https://meta.discourse.org/tags/intersection/how-to/dev-install) as Robert said.

---

<div class="post-metadata">

### Author: ![Abdul\_Hanan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abdul_hanan/32/456073_2.png) [@Abdul\_Hanan](https://meta.discourse.org/u/Abdul_Hanan)
#### Post date: [October 16, 2024, 11:01am UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047/6 "2024-10-16T11:01:49Z")

</div>

@rishabh thanks for your response.

I see, I’ve setup using docker but, I need to make some changes into rails code so how I can do this for production env?

---

<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: [October 16, 2024, 11:04am UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047/7 "2024-10-16T11:04:14Z")

</div>

[Build a plugin.](https://meta.discourse.org/t/developing-discourse-plugins-part-1-create-a-basic-plugin/30515)

Or if changes are just front end, [a theme component](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648).

---

<div class="post-metadata">

### Author: ![Abdul\_Hanan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abdul_hanan/32/456073_2.png) [@Abdul\_Hanan](https://meta.discourse.org/u/Abdul_Hanan)
#### Post date: [October 17, 2024, 11:30am UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047/8 "2024-10-17T11:30:36Z")

</div>

Got it, Thanks

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [October 18, 2024, 8:00am UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047/9 "2024-10-18T08:00:23Z")

</div>

A post was split to a new topic: [Change URL or remove Powered by Discourse](https://meta.discourse.org/t/change-url-or-remove-powered-by-discourse/331489)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 17, 2024, 8:01am UTC](https://meta.discourse.org/t/im-trying-to-run-discourse-app-locally-in-production-env-without-docker/331047/10 "2024-11-17T08:01:00Z")

</div>

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