From d26d8fc366bbbfeda934379eef56728b491be5d4 Mon Sep 17 00:00:00 2001
From: sau226 <32805612+sau226@users.noreply.github.com>
Date: Wed, 16 Dec 2020 02:20:20 +0800
Subject: [PATCH] Re-arrange order of community creation/db seed (#349)

* Re-arrange order of community creation/db seed

* Also move cache clear instruction
---
 README.md | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md
index ff8993fc1..2a724220d 100644
--- a/README.md
+++ b/README.md
@@ -75,7 +75,13 @@ Set up the database:
     rails r db/scripts/create_tags_path_view.rb
     rails db:migrate
 
- 
+ You'll need to create a Community record and purge the Rails cache before you can seed the database. In a Rails console (`rails c`), run:
+
+```ruby
+Community.create(name: 'Dev Community', host: 'localhost:3000')
+Rails.cache.clear
+```
+Then seed the database:
 
     $ rails db:seed
     Category: Created 2, skipped 0
@@ -85,15 +91,6 @@ Run the server!
 
     rails s
 
-You'll need to create a Community record before the server will display any
-content. In a Rails console (`rails c`), run:
-
-```ruby
-Community.create(name: 'Dev Community', host: 'localhost:3000')
-```
-
-If it keeps not showing content, `Rails.cache.clear` from your Rails console as
-necessary.
 
 You can create the first user account in the application, which should be running at http://localhost:3000/. To upgrade the user account
 to an admin account, run `rails c` for a console, followed by:
-- 
GitLab