maintenance-page

0.1.3 • Public • Published

Context

In deployed service it doesn't show up professionalism while you are working on server at the same time user are getting proxy error or other unexpected problem (Which was in fact happening for www.khadok.com's users ;)).

Thus i built this project so i can easily use "maintenance-page -m /path/to/my/temporary-down-html-files-dir" command to turn on maintenance page.

Example

maintenance-page -m /path/to/my/temporary-down-html-files-dir

Options

Available options:

*	-h, --help             Print this help

*	-P, --port NUMBER      Server port, by default 80

*	-H, --host HOST        Server host, by default 0.0.0.0

*	-m, --mount-dir FILE   Server directory from where index.html and related resources will be served, Required

Changes

  • v-0.1.1 - Fixed issue with not showing up page if request url is not "/" . Now it will be forced to index.html (by default) or use -d argument to set different page

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i maintenance-page

    Weekly Downloads

    3

    Version

    0.1.3

    License

    none

    Last publish

    Collaborators

    • hasan