Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add maintenance page to Baremetal deploy #5347

Closed
cannikin opened this issue Apr 27, 2022 · 0 comments · Fixed by #5500
Closed

Add maintenance page to Baremetal deploy #5347

cannikin opened this issue Apr 27, 2022 · 0 comments · Fixed by #5500
Labels
release:feature This PR introduces a new feature topic/deployment

Comments

@cannikin
Copy link
Member

If you've got a big enough change sometimes you need to take the whole site down temporarily while database migrations are running, or something needs to be re-configured on the site.

Let's add the ability to put a maintenance page up on the site so that all requests return that page instead of the index.

We create a new maintenance.html in the root of your app and you can put whatever you want in there (static HTML or a React app launching page, if you know what you're doing). At the time the command is run we have the web server serve the maintenance page instead of the regular index page. I'm thinking we just rename the files. When you run the maintenance:down command it renames everything back the way it was.

Right now I'm thinking syntax like:

yarn rw deploy baremetal --maintenance:up
yarn rw deploy baremetal --maintenance:down
@cannikin cannikin added topic/deployment release:feature This PR introduces a new feature labels Apr 27, 2022
@jtoar jtoar added this to Main May 5, 2022
@jtoar jtoar moved this to Backlog in Main May 5, 2022
@jtoar jtoar removed this from Main May 11, 2022
@jtoar jtoar added this to Main May 11, 2022
@jtoar jtoar removed this from Main May 11, 2022
@jtoar jtoar added this to Main May 14, 2022
@jtoar jtoar removed this from Main May 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:feature This PR introduces a new feature topic/deployment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant