From db2bb96cf7cb51cd5e2f92bd3af10b456bf31367 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 2 Oct 2017 18:08:07 -0400 Subject: [PATCH 1/2] 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: From 90f36e7ab5aecebfcf7df57d83ac852975771ab7 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 2 Oct 2017 18:12:35 -0400 Subject: [PATCH 2/2] This was probably intended to be 'ruby $(which mailcatcher)' but it works without all that --- docs/DEVELOPER-ADVANCED.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/DEVELOPER-ADVANCED.md b/docs/DEVELOPER-ADVANCED.md index 4996bcd1ee9..79c0d86a145 100644 --- a/docs/DEVELOPER-ADVANCED.md +++ b/docs/DEVELOPER-ADVANCED.md @@ -65,7 +65,7 @@ Create an admin account with: Discourse does a lot of stuff async, so it's better to run sidekiq even on development mode: - ruby $(mailcatcher) # open http://localhost:1080 to see the emails, stop with pkill -f mailcatcher + mailcatcher # open http://localhost:1080 to see the emails, stop with pkill -f mailcatcher bundle exec sidekiq # open http://localhost:3000/sidekiq to see queues bundle exec rails server