定制 altis/maintenance-mode 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

altis/maintenance-mode

Composer 安装命令:

composer require altis/maintenance-mode

包简介

Maintenance mode for Altis, controlled by Altis variables.

README 文档

README

A WordPress maintenance mode module for Altis that displays a user-friendly maintenance page when your site is under maintenance, controlled via Altis environment variables.

Why?

WordPress' built-in maintenance mode isn't compatible with multi-server architecture like Altis, since it writes out to a .maintenance file.

However, there are times where you might still need to enable it - upgrading the database, rolling out substantial changes, or performing imports.

This package adds a maintenance mode which can be controlled through an Altis Dashboard variable.

This maintenance mode runs before the WordPress database loads, allowing you to perform invasive maintenance on the database including full downtime if needed.

Installation

We're working on adding this to Altis natively.

In the meantime, you can add it by adding this package to your site:

composer require altis/maintenance-mode

Usage

  1. Navigate to the Altis Dashboard
  2. Select your environment
  3. Go to SettingsVariables
  4. Add a new variable:
    • Name: MAINTENANCE_MODE
    • Value: true

Then, deploy your site to update the variables. The maintenance page will be displayed across your entire site.

The login form, admin, and CLI are unaffected by maintenance mode, enabling you to continue administrative tasks if needed.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-09-05