Install discourse on a local vagrant machine
# Clone discourse and change into directory
git clone https://github.com/discourse/discourse.git
cd discourse
# Start it up and ssh in
vagrant up
vagrant ssh
# Change into vagrant directory
cd /vagrant
# Initial install (only required first time!)
bundle install
bundle exec rake db:migrate
# Start discourse - opens in http://localhost:4000
bundle exec rails s -b 0.0.0.0
# Create an admin user (only required first time!)
bundle exec rake admin:create
# Start mailcatcher - opens in http://localhost:4080
bundle exec sidekiq
mailcatcher --http-ip=0.0.0.0
# Any errors first try an update
gem update --system
# Shutdown
vagrant halt