From db2bb96cf7cb51cd5e2f92bd3af10b456bf31367 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 2 Oct 2017 18:08:07 -0400 Subject: [PATCH] Update DEVELOPER-ADVANCED.md: use rake task to create first user * with the new startup wizard, you can no longer create a user with no admins present, so use the rake task instead --- docs/DEVELOPER-ADVANCED.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/DEVELOPER-ADVANCED.md b/docs/DEVELOPER-ADVANCED.md index a8bf7a1b847..4996bcd1ee9 100644 --- a/docs/DEVELOPER-ADVANCED.md +++ b/docs/DEVELOPER-ADVANCED.md @@ -59,13 +59,9 @@ If everything goes alright, let's clone Discourse and start hacking: # launch discourse bundle exec rails s -b 0.0.0.0 # open browser on http://localhost:3000 and you should see Discourse -Create a test account, and enable it with: +Create an admin account with: - bundle exec rails c - u = User.find(1) - u.activate - u.grant_admin! - exit + bundle exec rake admin:create Discourse does a lot of stuff async, so it's better to run sidekiq even on development mode: