Skip to content

Instantly share code, notes, and snippets.

@dwayne
Last active September 15, 2015 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwayne/410e8e678a0b9f1d4a80 to your computer and use it in GitHub Desktop.
Save dwayne/410e8e678a0b9f1d4a80 to your computer and use it in GitHub Desktop.
Discourse Notes

Getting Started with Discourse on Ubuntu 14.04 LTS

Software you need

The process

I will now explain how to get Discourse running on your local machine so you can begin contributing to the project.

Fork then clone the project. For e.g. Suppose you forked the project to https://github.com/username/discourse then on your local machine you'd do:

$ cd
$ git clone https://github.com/username/discourse.git

Now you'd need to set the upstream repository for submitting your pull requests.

$ cd ~/discourse
$ git add remote upstream https://github.com/discourse/discourse.git

Finally, assuming you have VirtualBox and Vagrant set up correctly you can do the following to get Discourse running:

$ cd ~/discourse
$ vagrant up
$ vagrant ssh

# Within the VM
> bundle install
> bundle exec rake db:migrate
> bundle exec rails s

Now you can navigate to https://localhost:4000 to see Discourse up and running.

Note: If you receive an error (It appears your machine doesn't support NFS, or there is not an adapter to enable NFS on this machine for Vagrant) related to NFS when running vagrant up you'd need to install nfs-kernel-server and nfs-common. The instruction to do that is sudo apt-get install nfs-kernel-server nfs-common.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment