Discourse as Your First Rails App

Okay, set up a VM as you said, and everythings building fine now. Ruby is up and running, however, the page takes an average of 40 seconds to load. Console output shows nothing unsual (for me).

PS D:\Dev\Workspaces\discourse> vagrant ssh -c "bundle exec rails s"
ln: failed to create symbolic link `/vagrant/public/plugins/emoji': Protocol error
=> Booting Thin
=> Rails 4.0.2 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of
 your locale you can set I18n.enforce_available_locales = false to avoid this message.
Thin web server (v1.6.1 codename Death Proof)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new
config option. (called from require at script/rails:6)


Started GET "/" for 10.0.2.2 at 2013-12-19 16:46:36 -0500
Processing by ListController#latest as HTML
  ←[1m←[35m (1.3ms)←[0m  SELECT "groups"."name" FROM "groups"
  ←[1m←[36mCategory Load (3.9ms)←[0m  ←[1mSELECT "categories".* FROM "categories" WHERE (NOT categories.read_restricted)
 ORDER BY "categories"."position" ASC←[0m
  ←[1m←[35mTopic Load (3.3ms)←[0m  SELECT id, title, slug FROM "topics" WHERE ("topics"."deleted_at" IS NULL) AND "topic
s"."id" IN (10, 11, 12, 13, 41, 42, 43, 44, 45, 46, 47)
  ←[1m←[36m (1.5ms)←[0m  ←[1mSELECT "categories"."id" FROM "categories" WHERE (1=0)←[0m
  ←[1m←[35mPostActionType Load (2.5ms)←[0m  SELECT "post_action_types".* FROM "post_action_types" ORDER BY position asc
  ←[1m←[36mSiteContent Load (1.9ms)←[0m  ←[1mSELECT content FROM "site_contents" WHERE "site_contents"."content_type" =
'top' ORDER BY "site_contents"."content_type" ASC LIMIT 1←[0m
  ←[1m←[35mSiteContent Load (1.7ms)←[0m  SELECT content FROM "site_contents" WHERE "site_contents"."content_type" = 'bot
tom' ORDER BY "site_contents"."content_type" ASC LIMIT 1

I’ve assigned 4098 MB RAM to VirtualBox, which itself is installed on an SSD. Both the VM and the local Git repo are on another hard drive (not an SSD, though). Do you have any hints how to speed up page loading further?

EDIT: Nevermind, just realized that there are several performance tips above, I’ll try those first and come back later.