Hexo deployment workflow¶
The Hexo deployment workflow is a process that automates the generation of static files and their publication to a web server, typically GitHub Pages^[600-developer-blog-hexo-blog-create-blog-hexo.md].
Prerequisites¶
Before deploying, a specific deployment plugin must be installed in the project environment^[600-developer-blog-hexo-blog-create-blog-hexo.md].
npm install hexo-deployer-git --save^[600-developer-blog-hexo-blog-create-blog-hexo.md]
Configuration settings must also be updated in the _config.yml file to specify the deployment target URL^[600-developer-blog-hexo-blog-create-blog-hexo.md].
Process¶
The standard deployment sequence involves two primary commands executed in order^[600-developer-blog-hexo-blog-create-blog-hexo.md]:
- Generate: Run
hexo generateto compile the content into static files^[600-developer-blog-hexo-blog-create-blog-hexo.md]. - Deploy: Run
hexo deployto publish the generated files^[600-developer-blog-hexo-blog-create-blog-hexo.md].
These steps can be combined into a single workflow command, often configured within package.json^[600-developer-blog-hexo-blog-create-blog-hexo.md].
Related concepts¶
- [[Static site generator]]
- [[GitHub Pages]]
- Documentation Workflow
Sources¶
^[600-developer-blog-hexo-blog-create-blog-hexo.md]