-
Notifications
You must be signed in to change notification settings - Fork 60
install
Tinson Ho edited this page Jul 25, 2019
·
19 revisions
sudo vim ~/.bash_profile
export GOPATH="/go"
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export GO111MODULE=on
export GOPROXY=https://goproxy.io
source ~/.bash_profile
go get -u github.com/qit-team/snow/tool/snow
cd $GOPATH/src
snow new snow-demo
cd snow-demo
sh build/shell/build.sh
1. build/bin/snow -a api #启动Api服务
2. build/bin/snow -a cron #启动Cron定时任务服务
3. build/bin/snow -a job #启动队列调度服务
4. build/bin/snow -a command -m test #执行名称为test的脚本任务
snow upgrade
snow -h
snow new {ProjectName}
# 查看new支持的可选参数
snow new --help
snow model {ProjectName}
# 查看model支持的可选参数
snow model --help