Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Maintenance mode#81

Open
lusimeon wants to merge 8 commits into
developfrom
feature/maintenance-mode
Open

Maintenance mode#81
lusimeon wants to merge 8 commits into
developfrom
feature/maintenance-mode

Conversation

@lusimeon

@lusimeon lusimeon commented Jul 5, 2021

Copy link
Copy Markdown
Contributor

Put your site under maintenance with a 503 HTTP status and a dedicated page.

  1. The following server environment variables must be set in order to the maintenance be active:
MAINTENANCE_ENABLED=true|false # Enable/Disable maitenance mode.
MAINTENANCE_IPS=42.42.42.42.42 # Exclude a list of IPs from maitenance.
  1. Customize the maintenance page thanks to maintenance.php and maintenance.css files.

Closes #29

Comment thread template/web/wp-content/mu-plugins/studiometa-maintenance-mode/maintenance.php Outdated
@perruche

perruche commented Jul 5, 2021

Copy link
Copy Markdown
Contributor

Great addition !

Should we design the maitenance page to have a generic, simple nice looking page ?

@titouanmathis titouanmathis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition! One small change for me and this can be merged 👍

Comment thread template/web/wp-content/mu-plugins/studiometa-maintenance-mode/maintenance.php Outdated
Comment thread template/web/wp-content/mu-plugins/autoload.php

@ptt-homme ptt-homme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@perruche

perruche commented Aug 1, 2022

Copy link
Copy Markdown
Contributor

Kind of an old merge request but can/should this be merge ?

@lusimeon

lusimeon commented Aug 8, 2022

Copy link
Copy Markdown
Contributor Author

Yes, I'll take time to fix last feedback this week

Lucas Simeon added 4 commits August 10, 2022 14:52
This mu-plugin display a maintenance mode page when it's specified in `.env` file.

A list of IPs can be excluded from maintenance mode
Autoload done with boxuk/wp-muplugin-loader
@lusimeon lusimeon force-pushed the feature/maintenance-mode branch from ec61dac to 315a238 Compare August 10, 2022 12:55
@lusimeon lusimeon force-pushed the feature/maintenance-mode branch from 38475de to 969611f Compare August 10, 2022 14:47
@lusimeon lusimeon force-pushed the feature/maintenance-mode branch from e3a517d to 7e8893d Compare August 10, 2022 15:08
@lusimeon lusimeon force-pushed the feature/maintenance-mode branch from 29c1c72 to 8f2e4e9 Compare August 10, 2022 15:49
@lusimeon

Copy link
Copy Markdown
Contributor Author

#106 rework project structure, so wait #106 to be merged before merging this one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance mode

5 participants