Idea when Upgrading your discourse


#1

Maybe it’s stupid, but who knows… maybe it end up usefully, cause for me it would be definetly useful. Whats the word about;

When pressing Upgrade to auto post on your Facebook Page, Twitter… or any other social media that could be configured somehow in your admin panel. So we can easly inform our fellow users whats going on while we doing that. (I think it’s nice touch for any community having this.) :slight_smile:


(Bhanu Sharma) #2

If you’re upgrading from the /admin/upgrade link, site isn’t supposed to be very much impacted so there isn’t any need for that.

And if you’re rebuilding then the first thing that happens is that your container is shut down so it can’t do much.

Maybe you can check if your forum is up using something like ifttt and trigger to social channels from there?


#3

Yeah, you even open better view of it. Upgrade button (upgrading) will make not so much effect. But when rebuilding its different story like u said. – Actually also idea with ifttt is good to, i’ll test it out, and see what can i achieve.

Idea:

  • to ping site every 5+mins to check the status
  • if no response for % amount of seconds > Trigger default excuse for offline on social media.
  • (And when to integrate /something/ that when site is back online, to trigger again default “we are online sort of message”. (not sure about this one tbh, but will test and see what i can) :slight_smile:

(Bhanu Sharma) #4

Maybe try checking ok on the page /srv/status and if it returns anything else then send and automated message like
"We’re experiencing technical difficulties on our forum. Please stand with us while we resolve the issue"

and then when it returns okay,
"Our services have resumed to normal. Thanks for standing by"
or maybe a manual post explaining what it was done manually by someone who has access to the social streams.


(Felix Freiberger) #5

Why post this to social media when you could also just show it to anyone who tries to access your site? :slight_smile:


(Bhanu Sharma) #6

There is a usecase where the users will start spamming the social accounts as soon as they see an down for maintenance page.


(Paul W) #7

if you have an nginx proxy in front you can configure error pages

location / {
        error_page 502 =502 /errorpages/mysite_offline.html;
        proxy_intercept_errors on;
	    proxy_pass http://127.0.0.1:10080/;
        proxy_set_header Host $http_host;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_redirect https://mysite.web:10080/ https://mysite.web;
    }

Visitors are informed of what going then?