代码拉取完成,页面将自动刷新
language: go
go: 1.15
services:
- mongodb # 2.4.12
install:
- go version
- export PATH=$PATH:$HOME/gopath/bin
# - go get -v github.com/leanote/leanote/app
- go get -u github.com/revel/cmd/revel
# - ls $GOPATH/src/github.com/revel/
# - go get github.com/revel/moudle/revel
# - go install github.com/revel/cmd/revel
- revel version
- pwd
- ls
script:
- wget https://github.com/leanote/leanote/archive/refs/heads/master.zip
- unzip master.zip
- mv leanote-master leanote
- cd leanote
- mongo --version
- mongorestore -h localhost -d leanote --dir ./mongodb_backup/leanote_install_data/
- cd ./sh
# - cd $GOPATH/src/github.com/leanote/leanote/sh
- sh run.sh &
# 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 &
- sleep 10s;
# test
- curl http://localhost:9000
- curl http://localhost:9000/blog
- curl http://localhost:9000/login
- curl http://localhost:9000/demo
# - revel build github.com/leanote/leanote tmp
# OK
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。