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

Conversation

@lusimeon
Copy link
Contributor

@lusimeon lusimeon commented Jul 5, 2021

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

@perruche
Copy link
Contributor

perruche commented Jul 5, 2021

Great addition !

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

Copy link
Collaborator

@titouanmathis titouanmathis left a comment

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 👍

Copy link
Contributor

@ptt-homme ptt-homme left a comment

Choose a reason for hiding this comment

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

👍

@perruche
Copy link
Contributor

perruche commented Aug 1, 2022

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

@lusimeon
Copy link
Contributor Author

lusimeon commented Aug 8, 2022

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

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

6 participants