add cmd to gen routes.go, main.go

This commit is contained in:
lealife
2015-09-18 11:30:38 +08:00
parent 4d0a170f01
commit 45d1b4bee3
2 changed files with 27 additions and 0 deletions

View File

@ -16,9 +16,17 @@ script:
- go test github.com/leanote/leanote/app/tests
# gen tmp/main.go, routes/routes.go
- go run app/cmd/main.go
# build
- go build -o leanote github.com/leanote/leanote/app/tmp
# run with port 9000
- ./leanote -importPath=github.com/leanote/leanote -runMode=dev -port=9000 &
# test
- wget http://localhost:9000
- wget http://localhost:9000/blog
- wget http://localhost:9000/login
- wget http://localhost:9000/demo
# - revel build github.com/leanote/leanote tmp
# OK