You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
muryor
8f5f23381c
|
3 years ago | |
---|---|---|
.. | ||
README.md | 3 years ago | |
docker-compose.yml | 3 years ago | |
run.sh | 3 years ago |
README.md
TEST
本文档仅供测试和开发使用
docker-compose项目
运行本文档代码需要安装docker和docker-compose
下载该项目目录下的相应文件,执行docker-compose up
运行项目,或通过docker-compose up -d
后台运行项目。通过docker-compose down
停止项目
config 配置
create new file docker-compose.yml
run.sh
and a folder hexo
创建新文件 docker-compose.yml
run.sh
和一个目录hexo
copy hexo source file to hexo
folder
复制hexo源码到hexo
目录下
docker-compose.yml 内容如下
version: '3'
services:
hexo:
image: denalon/hexo-run
ports:
- "4000:4000"
environment:
- PGID=1000
- PUID=1000
- TZ=Asia/Shanghai
volumes:
- ./run.sh:/run.sh
- ./hexo:/hexo
entrypoint:
- sh
- /run.sh
run.sh 内容如下
npm install
hexo generate
hexo server
run 运行
run docker-compose up
ordocker-compose up -d
在项目根目录下执行 docker-compose up
或者docker-compose up -d
other 其他功能
change run.sh
file to run other hexo orders