# 升级 Discourse 时的一个想法

**URL:** https://meta.discourse.org/t/idea-when-upgrading-your-discourse/78226
**Category:** Feature
**Created:** [2018年一月16日 23:04 UTC](https://meta.discourse.org/t/idea-when-upgrading-your-discourse/78226 "2018-01-16T23:04:14Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![dbm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dbm/32/86954_2.png) [@dbm](https://meta.discourse.org/u/dbm)
#### Post date: [2018年一月16日 23:04 UTC](https://meta.discourse.org/t/idea-when-upgrading-your-discourse/78226/1 "2018-01-16T23:04:14Z")

</div>

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.) 🙂

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年一月17日 03:49 UTC](https://meta.discourse.org/t/idea-when-upgrading-your-discourse/78226/2 "2018-01-17T03:49:51Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![dbm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dbm/32/86954_2.png) [@dbm](https://meta.discourse.org/u/dbm)
#### Post date: [2018年一月17日 03:55 UTC](https://meta.discourse.org/t/idea-when-upgrading-your-discourse/78226/3 "2018-01-17T03:55:46Z")

</div>

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) 🙂

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年一月17日 04:01 UTC](https://meta.discourse.org/t/idea-when-upgrading-your-discourse/78226/4 "2018-01-17T04:01:58Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [2018年一月17日 18:14 UTC](https://meta.discourse.org/t/idea-when-upgrading-your-discourse/78226/5 "2018-01-17T18:14:06Z")

</div>

> [@dbm](#):
>
> 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.

Why post this to social media when you could also just [show it to anyone who tries to access your site](https://meta.discourse.org/t/adding-an-offline-page-when-rebuilding/45238)? 🙂

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年一月17日 18:20 UTC](https://meta.discourse.org/t/idea-when-upgrading-your-discourse/78226/6 "2018-01-17T18:20:21Z")

</div>

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

---

<div class="post-metadata">

### Author: ![TerminalAddict](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terminaladdict/32/119676_2.png) [@TerminalAddict](https://meta.discourse.org/u/TerminalAddict)
#### Post date: [2018年一月25日 20:04 UTC](https://meta.discourse.org/t/idea-when-upgrading-your-discourse/78226/7 "2018-01-25T20:04:58Z")

</div>

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?
