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

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 `’

Welcome to Meta.

Normally you’d run a development install locally:

https://meta.discourse.org/tags/intersection/how-to/dev-install

Running Production locally and without docker is not supported.

6 Likes

Thanks for your quick response.

So for production we need to go with docker ?

3 Likes

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

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.

4 Likes

Our supported install for production is documented here: discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub.

For development, use Topics tagged how-to & dev-install as Robert said.

4 Likes

@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?

Build a plugin.

Or if changes are just front end, a theme component.

5 Likes

Got it, Thanks

1 Like

A post was split to a new topic: Change URL or remove Powered by Discourse