Skip to content

Start hexo server with -s options do not work properly #363

Description

@chen-assert

Check List

  • I have already read README.
  • I have already searched existing issues and they are not help to me.
  • I examined error or warning messages and it's difficult to solve.
  • I am using the latest version of this repository.
  • I am using the latest version of Hexo.
  • My Node.js is matched the required version.

Describe the bug

The short options -s do not work properly.

Expected behavior

According to the hexo document, the command hexo server -s can used to start a hexo server on static mode, but it does not work, the server still work on watch mode.

How to reproduce

Use hexo server -s command to start a hexo server.

Screenshots

Image

Environment information

No response

Additional context

I did some tiny research and printed out the args on server.js.
It seems that the s arg was taken specially treatment by Hexo.
Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions