Setting up Discourse for Local Development (Local Host)

Setting up Discourse for local development is not easy, especially if we don’t know Ruby on Rails (The framework that powers Discourse). I found this guide helpful. It contains every necessary step:

Update 24/05/2024! Setting up Discourse for Local Development on Mac. (Tested on M1 chip - macOS Sonoma 14.4.1)

Follow this guide: Install Discourse on macOS for development - developers - Discourse Meta

When you visit the above URL, please whatever you do, don’t run the bash script. Manually install the packages yourself, one after the other.

Feel free to contact me if you get stuck. I will be happy to help.

1 Like

You’ll also need to install the Docuss plug-in to connect Discourse to our React/Meteor app

If you need any other plugins, or want to install them all right away so your platform operates exactly as the live one here’s a full list of plugins. Only Docuss operates directly on the ReactJS/MeteorJS. Others may interact with the i-frame window it loads in (toolbars and floating footers).

You can also find detailed instructions for setting up discourse on MacOS:

and on Windows:

A heads up for Mac users: one of the biggest hurdles you might encounter is that MacOS makes it difficult to update ruby (and you’ll need <= 2.7 to run discourse). Here’s a very useful and instructive guide on how to update ruby on MacOS:

also check Ruby’s guides to installing ruby:
https://www.ruby-lang.org/en/documentation/installation/#rvm

2 Likes

Those resources are a fantastic help to others in the future, thank you!

1 Like