Skip to content

Instantly share code, notes, and snippets.

@apparition47
Last active September 7, 2021 12:10
Show Gist options
  • Save apparition47/bf351b19d50c100f965d5f1a4c15d1c8 to your computer and use it in GitHub Desktop.
Save apparition47/bf351b19d50c100f965d5f1a4c15d1c8 to your computer and use it in GitHub Desktop.
Setup Local Discourse on macOS

How to setup Discourse 2.8.0 locally on macOS

Prereqs

Setup

git clone https://github.com/discourse/discourse.git
cd discourse

Run the following command to initialise and install the Docker image for Discourse and set up an administrator user:

d/boot_dev --init
  • Note: /d is a symlink to bin/docker.

Start the Rails server for Discourse:

d/rails server -b 0.0.0.0

In a separate Terminal window, start Ember:

d/ember-cli

See your local Discourse at http://localhost:4200

Other commands

Kill Docker Container

d/shutdown_dev

Start Docker Container

d/boot_dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment