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
This commit is contained in:
Michael Brown 2017-10-02 18:08:07 -04:00
parent 1022535c2b
commit db2bb96cf7
1 changed files with 2 additions and 6 deletions

View File

@ -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: