开源实例之Gostatic
前言
Gostatic is a static site generator. It tracks file changes during compilation, which is why it works reasonably fast. Also it provides framework for configuration akin to Make, which makes it easy to understand and to write custom configurations.
Gostatic 是 Go 语言开发的静态网站生成器。
实例地址
实例配置
配置 | 描述 |
---|---|
系统 | Debian |
开发环境服务端 | Go 1.20 |
服务器 | Nginx |
程序 | Gostatic 2.36 |
数据 | solovyov.net |
实例部署
权限要求
- 具有系统读写权限
- 已安装 Go
- 已安装 Nginx
安装程序
程序仓库:https://github.com/piranha/gostatic
数据仓库:https://github.com/piranha/solovyov.net
#克隆代码
git clone https://github.com/piranha/solovyov.net.git blog
cd blog
#安装依赖并生成静态文件
make
实例体验
后记
本实例仅供参考,不定期重置数据。