Installing discourse on Ubuntu 14


Pre Req

create an account on https://mandrillapp.com/

Installing discourse on Ubuntu 14

We will be installing Discourse using Docker

Update and install git:

apt-get update && apt-get upgrade -y

apt-get install git -y

Install Docker

wget -qO- https://get.docker.io/ | sh

create directory to store discourse

mkdir /var/discourse

close the discourse project into the directory

git clone https://github.com/discourse/discourse_docker.git /var/discourse

Change to the directory of the project

cd /var/discourse/

Copy the sample yml file

cp samples/standalone.yml containers/app.yml

Edit the App yml file

vi containers/app.yml

The following configs need to be updated

UNICORN_WORKERS: 2

DISCOURSE_DEVELOPER_EMAILS: 'your_email@address.com'

DISCOURSE_HOSTNAME: 'discourse.example.com'

DISCOURSE_SMTP_ADDRESS: smtp.mandrillapp.com            # (mandatory)
DISCOURSE_SMTP_PORT: 587                                # (optional)
DISCOURSE_SMTP_USER_NAME: mandrill_app_user_name        # (optional)
DISCOURSE_SMTP_PASSWORD: mandrill_app_password          # (optional)

Make sure that docker is started

service docker restart

Now we can start the application

./launcher bootstrap app
./launcher start app

There is an occasion where the app may not run the very first time, if this is the case, the easiest thing to do is to rebuild the container:

./launcher rebuild app

Now you can open an browser and go to your IP Address

http://youripaddress

success.png

Register New Account and Become Admin

Now you can create your account using the email address you added in the app.yml file and create the admin account.

Posted in
Last update:
2015-12-03 20:39
Average rating:0 (0 Votes)