Telling users there is maintenance happening; Two servers

已查看 6 次
跳至第一个未读帖子

Ralph Shnelvar

未读,
2018年2月21日 20:11:072018/2/21
收件人 rubyonra...@googlegroups.com
Rubyonrails-talk friends,

I'm not sure where to post this question.

I have two computers.  Both have been set up as Rails servers although I only have one of the two machines being a server at any one time because the servers are not serving up static web pages.  My web pages are NOT being hosted by an external ISP.  

Let's call the two machines Server X and Server Y.  Server X is the one that runs as an Apache server for, say 23 hours per day.  Server Y runs WEBrick so I can do development.  Server Y is capable of running Apache.

What I want to do sometimes is shut down Server X and then use Server Y to show an "Under maintenance until X" screen while I do maintenance on Server X.

Since Server X and Server Y are - more or less - identically configured, what is the best way for me to put up an "Under maintenance" web page?

I know there are lots of cute "Under maintenance" web pages "out there."  Is there a preferred one for Rails servers?



As an aside.  Assume Servers X and Y are both running and serving up the same static web pages.  Is there anything wrong with that?

Ralph Shnelvar

Hassan Schroeder

未读,
2018年2月21日 22:12:512018/2/21
收件人 rubyonrails-talk
On Wed, Feb 21, 2018 at 5:10 PM, Ralph Shnelvar <ral...@dos32.com> wrote:

> Since Server X and Server Y are - more or less - identically configured,
> what is the best way for me to put up an "Under maintenance" web page?

One possibility: https://github.com/capistrano/maintenance

At the least you might get some ideas looking at that 😀

> As an aside. Assume Servers X and Y are both running and serving up the
> same static web pages. Is there anything wrong with that?

Presuming they're on different internal IP addresses with some kind
of load balancer in front, no problem.

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote
回复全部
回复作者
转发
0 个新帖子