O Hexo fornece uma estratégia de implantação (deployment) rápida e fácil. Você só precisa de um único comando para implantar seu site no servidor.
$ hexo deploy
Antes da sua primeira implantação, você terá que modificar algumas configurações em _config.yml. Uma configuração de implantação válida deve ter um campo type. Por exemplo:
deploy: type:git
Você pode implantar o site em mais de um servidor. O Hexo executará cada implantação na ordem da declaração.
deploy: -type:git repo: -type:heroku repo:
Refer to the Plugins list for more deployment plugins.
Optional token value to authenticate with the repo. Prefix with $ to read token from environment variable
Deploy your site hexo clean && hexo deploy.
You will be prompted with username and password of the target repository, unless you authenticate with a token or ssh key.
hexo-deployer-git does not store your username and password. Use git-credential-cache to store them temporarily.
Navigate to your repository settings and change the “Pages” branch to gh-pages (or the branch specified in your config). The deployed site should be live on the link shown on the “Pages” setting.