Build and deploy a simple setup of Discourse on devo.ps.
Simply use the link below:
Once you've forked the repository, open it in devo.ps and you will be prompted for a few settings, including:
- git URL; in case you have forked the original repository
- admin emails; the email addresses of your admins (comma separated)
- domain; the domain name you want your Discourse setup to reply to
- provider details; which provider and size of cloud instance you want
- SMTP details; Discourse make extensive use of emails for registration, notification, etc. Better provide details for a Mandrill account
Once the information entered, the server will automatically start to be deployed - and on completion the Discourse application be deployed.
This setup contains one server (nodes/discourse.yml
) with Nginx, Ruby, Redis, Nodejs, PostgreSQL (with a "discourse" user and a "discourse_prod" database)
We have included as well a task (tasks/install-discourse.yml
) that:
- Clone the discourse app from GitHub (set to official Discourse GitHub repository by default).
- Install all your application dependencies via bundle
- Run a config script (
scripts/prepare_discourse_config.sh
) that will: - Write the Discourse configuration file (to connect it to PostgreSQL, and SMTP details)
- Prepare the Nginx Vhost config file
- Prepare the database
- Setup the Supervisord applications (Rails and Sidekiq)
The current repo provides a production ready setup of Discourse. Hack at will!
May you want to investigate possible issues, you may want to dig in the following logs on the server you have created:
/var/www/discourse/log/production.log
; for the RoR / Discourse logs (internals)/var/log/supervisor/discourse-std*
; for the RoR / Discourse logs/var/log/supervisor/sidekiq-std*
; for the Sidekiq logs/var/log/nginx/access.log
and/var/log/nginx/error.log
; for the basic web logs
If you have any question, come ask us on the devo.ps chat or shoot us an email at [email protected] (though, you should really just ask us in the chat).