hexo server -s only opens the static file server (that is, the public directory is the root directory) without the watch function. hexo server Turn on the default server, which has a watch function. If the markdown file is modified, it will be automatically compiled.
I usually write the article once, preview it in hexo s, and then publish it
hexo server -s
only opens the static file server (that is, thepublic
directory is the root directory) without the watch function.hexo server
Turn on the default server, which has a watch function. If the markdown file is modified, it will be automatically compiled.