hexo-server
With the release of Hexo 3, the server has been separated from the main module. To start using the server, you will first have to install hexo-server.
|
Once the server has been installed, run the following command to start the server. Your website will run at http://localhost:4000
by default. When the server is running, Hexo will watch for file changes and update automatically so it’s not necessary to manually restart the server.
|
If you want to change the port or if you’re encountering EADDRINUSE
errors, use the -p
option to set a different port.
|
Static Mode
In static mode, only files in the public
folder will be served and file watching is disabled. You have to run hexo generate
before starting the server. Usually used in production.
|
Custom IP
Hexo runs the server at 0.0.0.0
by default. You can override the default IP setting.
|
Pow
Pow is a zero-config Rack server for Mac.
Install
|
Setup
Symlink the folder into ~/.pow
|
Your website will be up and running at http://myapp.dev
. The URL is based on the name of the symlink.