blogserver

command module
v0.0.0-...-5952180 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

blogserver

简介

简单的博客系统服务端程序

go run main.go server -c=config/
需要的外部支持
  • Mysql服务
  • jaeger服务( localhost )
使用Makefile构建

等待完善

使用 Dockerfile构建docker镜像 ( 目前已经使用cobra 改造入口文件兼容 多命令,等待完成后将重新构建镜像 )
# 构建镜像
docker build -t hayuzi/blogserver:v1.0.1 .

# 删除镜像
docker rmi hayuzi/blogserver:v1.0.1  

# 执行(执行的时候需要挂载配置文件进去替换)
docker run --rm -p 8081:8081 hayuzi/blogserver:v1.0.1

docker run --name=blogserver -p 8081:8081 hayuzi/blogserver:v1.0.1 server

# 挂载相关目录到容器中并运行
docker run --name=blogserver -p 8081:8081 -v /your/config/path:/data/blog/config  -v /your/storage/path:/data/blog/storage hayuzi/blogserver:v1.0.1

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL