Abort if domain is not configured
authorKane York <rikingcoding@gmail.com>
Wed, 22 Jul 2015 02:22:54 +0000 (19:22 -0700)
committerKane York <rikingcoding@gmail.com>
Wed, 22 Jul 2015 02:22:54 +0000 (19:22 -0700)
https://meta.discourse.org/t/stupid-discourse-examples-com-set-up-issue/31260/9?u=riking

templates/web.template.yml

index b23aaaba9f75793dad2446a0d674398cde5e7012..b4fdd927e2a0812aa02986ddf6c01044080685d2 100644 (file)
@@ -22,6 +22,7 @@ params:
 
 run:
   - exec: /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
+  - exec: /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
   - file:
      path: /etc/runit/1.d/copy-env
      chmod: "+x"