mirror of
https://github.com/beego/bee.git
synced 2024-11-22 15:10:54 +00:00
add beego version and bee version and travis
This commit is contained in:
parent
0dbe35a943
commit
1566ca7da1
6
.travis.yml
Normal file
6
.travis.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
language: go
|
||||||
|
|
||||||
|
go:
|
||||||
|
- 1.5.3
|
||||||
|
- 1.4.3
|
||||||
|
- 1.3.3
|
13
run.go
13
run.go
@ -15,8 +15,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
"os/exec"
|
||||||
path "path/filepath"
|
path "path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
@ -51,6 +54,14 @@ func init() {
|
|||||||
var appname string
|
var appname string
|
||||||
|
|
||||||
func runApp(cmd *Command, args []string) int {
|
func runApp(cmd *Command, args []string) int {
|
||||||
|
fmt.Println("bee :" + version)
|
||||||
|
fmt.Println("beego :" + getbeegoVersion())
|
||||||
|
goversion, err := exec.Command("go", "version").Output()
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
fmt.Println("Go :" + string(goversion))
|
||||||
|
|
||||||
exit := make(chan bool)
|
exit := make(chan bool)
|
||||||
crupath, _ := os.Getwd()
|
crupath, _ := os.Getwd()
|
||||||
|
|
||||||
@ -70,7 +81,7 @@ func runApp(cmd *Command, args []string) int {
|
|||||||
}
|
}
|
||||||
Debugf("current path:%s\n", crupath)
|
Debugf("current path:%s\n", crupath)
|
||||||
|
|
||||||
err := loadConfig()
|
err = loadConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ColorLog("[ERRO] Fail to parse bee.json[ %s ]\n", err)
|
ColorLog("[ERRO] Fail to parse bee.json[ %s ]\n", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user