1 回答
TA贡献1820条经验 获得超10个赞
尝试重新安装狂欢
这是我尝试过的方法,它对我有用。
设置执行路径($GOPATH):
export GOPATH=/var/projects/go
安装狂欢和命令:
go get github.com/revel/revel go get github.com/revel/cmd/revel
将 revel cmd 链接到 bin 目录。因此该命令可能是可执行的。
export PATH="$PATH:$GOPATH/bin
检查狂欢是否有效。
revel
只需在命令行中输入
输出会是这样的
Usage:
revel [OPTIONS] <command>
Application Options:
-v, --debug If set the logger is set to verbose
--historic-run-mode If set the runmode is passed a string not json
-X, --build-flags= These flags will be used when building the application. May be specified multiple times, only applicable for Build, Run,
Package, Test commands
Available commands:
build
clean
new
package
run
test
version
检查狂欢版本:
revel version
输出
Revel executing: displays the Revel Framework and Go version
Revel Framework : 0.21.0 (0.21.0 remote master branch)
Revel Cmd : 0.21.1 (0.21.1 remote master branch)
Revel Modules : 0.21.0 (0.21.0 remote master branch)
现在,您可以使用命令创建第一个项目
revel new myapp
输出
Revel executing: create a skeleton Revel application
Your application has been created in:
/var/projects/go/src/myapp
You can run it with:
revel run -a myapp
- 1 回答
- 0 关注
- 147 浏览
添加回答
举报