biola / turnout

Turnout makes it easy to put Rack apps into maintenance mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any way to redirect to a subdominant?

CiaranPearse opened this issue · comments

Is there any way to redirect users to a subdomain when maintenance is on? Let's say instead of a maintainance page they could be redirected to signup.xxxxxxxx.com.

It would be very useful to get a prod env working correctly before allowing access to it.

Great gem btw :)

The easiest way would be to setup a meta redirect. Just create your own public/maintenance.html file and add something like this inside the <head> tag.

<meta http-equiv="refresh" content="0; url=http://example.com/" />