How do I install Discourse to Ubuntu 22 in WSL for development in Windows 10?

Step 1

Install Ubuntu 22 via Windows Subsystem for Linux (WSL).

Step 2

bash <(wget -qO-

Step 3

sudo service postgresql start

Step 4

redis-server --daemonize yes

How did I fix «Memory overcommit must be enabled» on redis-server --daemonize yes?

Step 5

git clone ~/discourse

Step 6

cd ~/discourse
bundle install

Step 7

yarn install

Step 8

bin/rails db:create 
bin/rails db:migrate
RAILS_ENV=test bin/rails db:create db:migrate

Step 9

bin/ember-cli -u

Step 10

How you can open your Discourse website at in Windows:

Step 11

How to access from Windows a Discourse’s PostgreSQL database installed to WSL?

Step 12

Step 13

Step 14

Step 15

Step 16