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

windows怎么启动?启动不了 #44

Open
Niofh opened this issue Sep 26, 2019 · 3 comments
Open

windows怎么启动?启动不了 #44

Niofh opened this issue Sep 26, 2019 · 3 comments

Comments

@Niofh
Copy link

Niofh commented Sep 26, 2019

No description provided.

@LyricTian
Copy link
Owner

LyricTian commented Sep 28, 2019

windows下没有make命令,可以选择安装mingw64软件包:链接:https://share.weiyun.com/5TR4VTx,然后将mingw64/bin目录放入PATH,执行:

mingw32-make start

也可以使用go命令直接运行:

cd gin-admin/cmd/server
go build -o server
./server -c ../../configs/config.toml -m ../../configs/model.conf -swagger ../../internal/app/swagger

@zinwalin
Copy link

windows下没有make命令,可以选择安装mingw64软件包:链接:https://share.weiyun.com/5TR4VTx,然后将mingw64/bin目录放入PATH,执行:

mingw32-make start

也可以使用go命令直接运行:

cd gin-admin/cmd/server
go build -o server
./server -c ../../configs/config.toml -m ../../configs/model.conf -swagger ../../internal/app/swagger

哪来的 cd gin-admin/cmd/server 目录?

@LyricTian
Copy link
Owner

入口文件为:cmd/server/main.go,可以执行命令:

go run cmd/server/main.go -c ./configs/config.toml -m ./configs/model.conf -swagger ./internal/app/swagger

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

No branches or pull requests

3 participants