- Joined
- Mar 25, 2015
- Messages
- 186
Setup a Discourse Forum / Email in 15min
I didn't time it exactly (probably should have done that!
), but this is just a simple and fast way to setup a Discourse forum. 
This tutorial is designed for people who don't know much, but it does assume a few things:
Step 1: Setup Droplet
Step 2: Setup DNS
Step 3: Setup Email
Step 4: Setup Discourse
Step 1 // Setup Droplet
1) Sign up to DigitalOcean: https://www.digitalocean.com/
2) Load some money onto the site, or connect your credit card, don't worry you're not signing your life away, just chuck $20 onto the site.
3) Click Create Droplet

4) Click One-click apps --> Discourse (my defaults are listed below) and click Create
5) Once you hit Create, it'll take a moment for it to create the droplet. You will get an email in a minute, forget it. Don't look at that email just yet!! We will revisit it in a moment.
Step 2 // Setup DNS
Since DigitalOcean doesn't host domains, I'll assume you have your domain somewhere else (i.e. GoDaddy). I have my domain at MDDHosting. All we are doing here is telling our host that DigitalOcean is gonna be controlling everything.
1) Login to your host, find the settings for your domain and point nameservers to DigitalOcean.

2) Log back into DigitalOcean and click beside your Droplet --> More --> Add a Domain
3) Add the domain name beside your Droplet and hit Create Record

Step 3 // Setup Email
1) Head over to MailGun: www.mailgun.com and create a free account.
2) Click Domains --> Add New Domain
3) Fill in the appropriate info and click Add Domain.
4) You'll now be looking at all the info DigitalOcean needs, so lets go tell them that info!!
Login to DigitalOcean and go to Networking --> Domains --> More (beside the domain name) --> View Domain.
5) Keeping MailGun & DigitalOcean open, start to copy that info over, BUT, we do need to change some info. When entering domains into DigitalOcean, ALL domains must end with a period AND DigitalOcean will automatically change the entry for you to what you see below:
6) Go back to MailGun and click verify and it now set your domain to "Active".
Step 4 // Setup Discourse Forum
1) Remember that email I told you to forget? Go find it.
In your email you used to signup to DigitalOcean is your Droplet info!! Write your password down for root.
2) Log into DigitalOcean, go to your Droplet --> More --> Access Console
3) Open console and type "root", now type your password that they gave you in the email. The console will ask you to change your email, change it.
4) Discourse is now going to ask you for:
6) Create Admin account:
Type:
7) Head over to your domain and check it out!!! Log in and be happy... that we're almost done.
8) Go to your ACP:

9) Click on Emails --> Now enter a test email to make sure everything works!!:

DONE!!
Hope you enjoyed the tutorial. Please note: Discourse tends to be finicky with the small details. If something isn't working, there's a chance you overlooked something very small. So please pay attention to all the details in the tutorial. Also, if I missed anything, post it below.
I didn't time it exactly (probably should have done that!
This tutorial is designed for people who don't know much, but it does assume a few things:
- You know some basic computer stuff
- You know how to sign up for services like DigitalOcean / Mailgun
- You're using DigitalOcean to control your DNS (basically what I mean is, your domain "www.example.com" you may have got through GoDaddy we will point to DigitalOcean to control. I'll show you how.
Step 1: Setup Droplet
Step 2: Setup DNS
Step 3: Setup Email
Step 4: Setup Discourse
Step 1 // Setup Droplet
1) Sign up to DigitalOcean: https://www.digitalocean.com/
2) Load some money onto the site, or connect your credit card, don't worry you're not signing your life away, just chuck $20 onto the site.
3) Click Create Droplet

4) Click One-click apps --> Discourse (my defaults are listed below) and click Create

5) Once you hit Create, it'll take a moment for it to create the droplet. You will get an email in a minute, forget it. Don't look at that email just yet!! We will revisit it in a moment.
Step 2 // Setup DNS
Since DigitalOcean doesn't host domains, I'll assume you have your domain somewhere else (i.e. GoDaddy). I have my domain at MDDHosting. All we are doing here is telling our host that DigitalOcean is gonna be controlling everything.
1) Login to your host, find the settings for your domain and point nameservers to DigitalOcean.

2) Log back into DigitalOcean and click beside your Droplet --> More --> Add a Domain

3) Add the domain name beside your Droplet and hit Create Record

Step 3 // Setup Email
1) Head over to MailGun: www.mailgun.com and create a free account.
2) Click Domains --> Add New Domain

3) Fill in the appropriate info and click Add Domain.

4) You'll now be looking at all the info DigitalOcean needs, so lets go tell them that info!!
5) Keeping MailGun & DigitalOcean open, start to copy that info over, BUT, we do need to change some info. When entering domains into DigitalOcean, ALL domains must end with a period AND DigitalOcean will automatically change the entry for you to what you see below:

6) Go back to MailGun and click verify and it now set your domain to "Active".
Step 4 // Setup Discourse Forum
1) Remember that email I told you to forget? Go find it.
2) Log into DigitalOcean, go to your Droplet --> More --> Access Console

3) Open console and type "root", now type your password that they gave you in the email. The console will ask you to change your email, change it.

4) Discourse is now going to ask you for:
- Admin email (enter what you will use)
- Domain name (example.com OR WWW.example.com depending on what you used for Digital Ocean / MailGun)
- SMTP Server: smtp.mailgun.org (Find info at Mailgun)
- SMTP Port: 587
- SMTP Username: postmaster@www.example.com (Find info at Mailgun)
- SMTP Password: (Find info at Mailgun)
6) Create Admin account:
Type:
- cd /var/discourse
- ./launcher enter app
- rake admin:create
7) Head over to your domain and check it out!!! Log in and be happy... that we're almost done.
8) Go to your ACP:

9) Click on Emails --> Now enter a test email to make sure everything works!!:

DONE!!
Hope you enjoyed the tutorial. Please note: Discourse tends to be finicky with the small details. If something isn't working, there's a chance you overlooked something very small. So please pay attention to all the details in the tutorial. Also, if I missed anything, post it below.
Last edited: