x

command
v0.0.0-...-d31700d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 11 Imported by: 0

README

x(小美)

一个简单、实用的go语言web框架,注重部署、日志、报警、尽可能的自动化。

安装

go get gitee.com/go-better/dev/tool/x

执行如上go get命令即可将x安装到$GOPATH/bin目录中。 如果$GOPATH/bin已经在$PATH搜索路径中,你可以输入x version命令来检查x是否已经安装成功。 如果输出类似"x version 18.7.13"的版本信息,就说明已经安装成功了。

现在x包含了三个服务:

  1. app服务:运行项目编译出的二进制文件,用来服务HTTP请求、执行定时任务等。
  2. web服务:运行nginx,用来服务项目内的静态文件。
  3. logc服务:运行logc日志收集工具,存储到ElasticSearch,供Kibana可视化展现。

文档

概览

在项目的开发流程中常用的命令如下:

x new example          # 生成项目
cd example                   # 进入项目目录(后续命令可在项目内任何目录执行)

x app run              # 在本机启动app服务器
x web run              # 在本机启动web服务器

x deploy                  # 部署所有服务到开发环境
x access setup            # 设置开发环境的Nginx接入层

x deploy qa               # 部署所有服务到QA环境
x access setup qa         # 设置QA环境的Nginx接入层

x deploy production       # 部署所有服务到生产环境
x access setup production # 设置生产环境的Nginx接入层

x的完整命令行用法可以使用x --help来查看。

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