hexojs / hexo-server

Server module for Hexo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Start Programmatically?

connorbode opened this issue · comments

How can I start the server programmatically?

Nvm found it:

hexo.call('server', args). Perhaps this should be added to the docs, perhaps here as a specific command, and in the API section of the main Hexo docs (https://hexo.io/api/console.html) as a generic command (e.g. to exec console commands run hexo.call(command, args))