Discourse on local pc

AI-generated summary

Discourse on Local PC

levi45 is trying to install Discourse on a local Ubuntu PC for test purposes. Moin provided a link to the beginner’s guide for installing Discourse on Ubuntu, while merefield suggested a Docker-based installation.

During the installation process, levi45 encountered issues with the bundle exec rake autospec command taking a long time. merefield explained that this command is not mandatory and is only running unit tests.

After moving on to running the server, levi45 encountered more errors. merefield provided fixes, including updating node to a more modern version and running the server without Ember-CLI using NO_EMBER_CLI=1 UNICORN_BIND_ALL=TRUE bin/rails s.

Eventually, levi45 got Discourse up and running. merefield added that the modern way to run Discourse is by using bin/ember-cli -u, which runs both rails and ember simultaneously.

thoka encountered a separate issue and was referred to a different thread for help.

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

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

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 ?

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

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

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

Move on and run the server.

Very strange when i started the local server this what said

then i have give that command then i get this error
Screenshot from 2021-08-26 15-15-37

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

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

Thanks All up and running now :clap:

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)

Hm. Running into

Also using the old way described above.