Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kratos tool: 更友好的方式创建项目和运行 #48

Closed
tonybase opened this issue Apr 27, 2019 · 1 comment · Fixed by #51
Closed

kratos tool: 更友好的方式创建项目和运行 #48

tonybase opened this issue Apr 27, 2019 · 1 comment · Fixed by #51
Assignees
Labels
enhancement New feature or request

Comments

@tonybase
Copy link
Member

tonybase commented Apr 27, 2019

kratos tool

kratos new hello_world [-o owner] [-d directory] [-grpc]
kratos build
kratos run
  • 修改为更方便的方式创建项目;
  • 添加build、run指令可以在当前项目任意目录执行;

创建项目

$ kratos new kratos-demo -o test

Project: kratos-demo
Owner: test
WithGRPC: false
Directory: /data/github/kratos-demo

The application has been created.

编译项目

$ cd kratos-demo
$ kratos build

directory: /data/github/kratos-demo/cmd
kratos: v0.0.1
build success.

运行项目

$ cd kratos-demo
$ kratos run

[2019/04/27 14:31:16.445] [proc.go:200] kratos-demo start
2019/04/27 14:31:16 start watch filepath: /data/github/kratos-demo/configs
[2019/04/27 14:31:16.446] [http.go:33] blademaster: start http listen addr: 0.0.0.0:8000
@Terry-Mao
Copy link
Member

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants