Coder Social home page Coder Social logo

gopub2.0's Introduction

gopub2.0

go-bindata ./html/... 项目说明:
gopub是一款由golang语言编写的代码发布系统,适用于golang,php,java,python等脚本代码的发布。
demo查看
用户名:wuyang 密码:w123123

依赖:

  1. ssh免密码登陆
ssh-keygen -t rsa

一路回车以后将生成的id_rsa.pub内容复制进服务器用户目录authorized_keys文件中。详细请参考相关教程。这里推荐一篇
阮一峰的ssh登陆教程
最后,如果需安装本软件的机器如果可以免密码登陆服务器,即可正常使用本软件了

  1. git v2.0.0以上
    git最新版本安装教程

功能清单:

  1. 版本文件发布
  2. 版本任意切换
  3. 线上文件检查
  4. 发布审核
  5. 版本发布记录
  6. 发布后自定义命令
  7. 多机器发布

使用说明:

从源码构建:

编译:

  1. windows:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o gopub2.0 main.go
  1. linux:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gopub2.0 main.go
  1. macos:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o gopub2.0 main.go

配置文件:config.json

{
"Listen": ":8088",//监听端口
"DBIp":   "192.168.3.208",//数据库ip
"DBPort": "3306",//数据库端口
"DBUser": "root",//数据库用户名
"DBPass": "112215334",//数据库密码
"DBName": "pazu",//数据库名
"SqlLog": false//是否开启sql日志
}

请自行去掉斜杠

最后请将数据库user表内自己的role设置为2,具有管理员权限

update user set role = 2;

下载编译版本: 下载

ps:欢迎fork和点赞~~

gopub2.0

gopub2.0's People

Watchers

James Cloos avatar pazu 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.