dokku-maintenance

提供管理应用程序维护模式功能的 dokku 插件。「dokku plugin that gives the ability to manage application maintenance mode」

  • 所有者: dokku/dokku-maintenance
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

dokku-maintenance

dokku-maintenance is a plugin for dokku that gives the ability to enable or disable maintenance mode for an application.

requirements

  • dokku 0.4.x+
  • docker 1.8.x

installation

# on 0.4.x+
sudo dokku plugin:install https://github.com/dokku/dokku-maintenance.git maintenance

commands

$ dokku help
    maintenance <app>                               Display the current maintenance status of app
    maintenance:custom-page <app>                   Imports a tarball from stdin; should contain at least maintenance.html
    maintenance:disable <app>                       Disable app maintenance mode
    maintenance:enable <app>                        Enable app maintenance mode

usage

Check maintenance status of my-app

# dokku maintenance my-app            # Server side
$ ssh dokku@server maintenance my-app # Client side

-----> Maintenance status of my-app:
       off

Enable maintenance mode for my-app

# dokku maintenance:enable my-app            # Server side
$ ssh dokku@server maintenance:enable my-app # Client side

-----> Enabling maintenance mode for ruby-test...
       done

Disable maintenance mode for my-app

# dokku maintenance:disable my-app            # Server side
$ ssh dokku@server maintenance:disable my-app # Client side

-----> Disabling maintenance mode for ruby-test...
       done

Use a custom page for maintenance

# dokku maintenance:custom-page my-app < my-custom-page.tar            # Server side
$ ssh dokku@server maintenance:custom-page my-app < my-custom-page.tar # Client side

-----> Importing custom maintenance page...
maintenance.html
image.jpg
       done

You have to provide at least a maintenance.html page but you can provide images, css, custom font, etc. if you want. Just write absolute paths in your html and not relative ones (so to serve image.jpg which is at the same level than your maintenance.html page you’ll write “/image.jpg” instead of “./image.jpg” or “image.jpg”).

概覽

名稱與所有者dokku/dokku-maintenance
主編程語言Shell
編程語言Shell (語言數: 3)
平台
許可證MIT License
發布數8
最新版本名稱0.8.0 (發布於 )
第一版名稱v0.3.23 (發布於 )
創建於2015-03-06 17:47:15
推送於2023-12-09 04:24:22
最后一次提交2023-12-08 23:24:21
星數107
關注者數7
派生數13
提交數43
已啟用問題?
問題數11
打開的問題數1
拉請求數7
打開的拉請求數0
關閉的拉請求數0
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部