Git Product home page Git Product logo

blogserver's Introduction

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

blogserver's People

Contributors

hayuzi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.