mirror of
https://github.com/discourse/discourse.git
synced 2025-04-30 03:44:33 +08:00
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:
parent
1022535c2b
commit
db2bb96cf7
@ -59,13 +59,9 @@ If everything goes alright, let's clone Discourse and start hacking:
|
|||||||
# launch discourse
|
# launch discourse
|
||||||
bundle exec rails s -b 0.0.0.0 # open browser on http://localhost:3000 and you should see 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
|
bundle exec rake admin:create
|
||||||
u = User.find(1)
|
|
||||||
u.activate
|
|
||||||
u.grant_admin!
|
|
||||||
exit
|
|
||||||
|
|
||||||
Discourse does a lot of stuff async, so it's better to run sidekiq even on development mode:
|
Discourse does a lot of stuff async, so it's better to run sidekiq even on development mode:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user