I have a spare Ubuntu machine lying around and I would like to install Discourse on it.
How do I do this? I'm running Ubuntu 13.04.
I have a spare Ubuntu machine lying around and I would like to install Discourse on it.
How do I do this? I'm running Ubuntu 13.04.
The instructions assume you need vagrant to install Ubuntu, and are apparently geared towards people mainly using Windows or Mac and who would benefit from a separate VM to install and play with discourse. If Seth has an "Ubuntu machine lying around" with 13.04 already installed, he can just clone the git repo and set it up locally.
Setting things up locally and manually is documented here on GitHub. However it does seem a bit complex, the vagrant VM has all the needed services (pgsql, redis) already preconfigured so may be easier to get started with.
That said, if you're feeling brave, you can follow these steps to install and configure things on your local Ubuntu machine.
Disclaimer, it is a complex procedure that involves many moving parts, I tested this procedure on a freshly installed 13.04 system but if things go wrong, you should be prepared to decypher error messages and fix things. You should be comfortable with:
OK, here goes
Install needed packages:
Create a postgresql database and grant permissions to the user who is going to run discourse (I'll assume it's named "john", it could/should be your username):
Clone the repository:
Use Bundler to install ruby gems and dependencies including rails:
You may run into dependency problems here, as other packages may be needed to build native extensions. If you get yellow text with errors in this step, look at the error messages to figure out which packages to install (with apt-get).
Configure the database data (postgres and redis):
Run the migrations to initialize the database, then seed it:
then launch the development web server:
Finally, open your browser and connect to the local dev server at
Cloud deployment (with Juju)
If you have a cloud provider and want to skip a lot of manual jumping around, you can use the Juju charm!
After you've successfully bootstrapped an environment, run the following:
Then create relations
Discourse requires
db-admin
level access in order to enable the hstore plugin. Finally, expose discourse:Configuration and other caveats can be found in the Charm's README. These options include configuring admins, where to fetch the Discourse source, version pinning, and other tuning options.
Disclaimer, I am the author of this charm.
Bare Metal
I've just completed an article describing this exact process
In summary, you need to:
bundle exec rails server
The project itself also has documentation on how to install on Ubuntu using Docker (which is the only officially supported way):
For development you can use this program which is a simple single command after you install Docker.
You can use Cloud 66 EasyDeploy
Which means you can then deploy Discourse on AWS, DigitalOcean, Rackspace, Linode or Joyent with a couple of clicks (and get a lot more like DB backups, scaling and monitoring as well!)
DISCLAIMER: I work for Cloud 66.
At Bitnami we have completely Linux installers for Discourse and Ubuntu-based virtual machines and cloud images for Amazon, Azure. You can check it out at the Bitnami Discourse page
(Disclaimer, I am one of the developers of Bitnami :)