Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

howborn/blog

Repository files navigation

关注公众号获取文章推送

公众号

项目代码

本项目采用 git submodule 方式管理源代码。

  • clone 命令
git clone --recursive https://github.com/howborn/blog.git
  • pull 命令
git pull && git submodule foreach git pull origin master
  • 安装 hexo
npm install -g hexo-cli
npm install hexo
npm install hexo-deployer-git --save
  • 发布文章
# 本地预览
hexo s
# 发布到git仓库托管, 配置见_config.yml的deploy项
hexo deploy -g

部署环境

支持 docker 部署,请先安装 docker-compose

  • 配置环境变量
cp docker.example.env docker.env

其中,各环境变量意义见docker.example.env文件中的注释说明,可以根据实际情况修改各环境变量参数的值。

  • 支持HTTPS协议
/bin/bash dockerfiles/nginx/ssl/init_ssl.sh

注意:如果无需支持HTTPS协议,则跳过此步骤,需要将环境变量ENABLE_SSL修改为true

  • 启动容器
docker-compose up --force-recreate --build -d

文章内容

本站所有的文章 Markdown 文件,请移步 这里

杂谈

架构

算法

语言

DB

MySQL

Redis

搜索

About

🔥公众号:后端搬运工

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /