|
@@ -8,6 +8,7 @@ import (
|
|
"fs"
|
|
"fs"
|
|
"github.com/Tangmz/tangs/log"
|
|
"github.com/Tangmz/tangs/log"
|
|
"time"
|
|
"time"
|
|
|
|
+ "os"
|
|
)
|
|
)
|
|
|
|
|
|
func main() {
|
|
func main() {
|
|
@@ -37,6 +38,10 @@ func main() {
|
|
|
|
|
|
fs.Conf = config
|
|
fs.Conf = config
|
|
|
|
|
|
|
|
+ path, _ := os.Getwd()
|
|
|
|
+ fmt.Println("current path is ", path)
|
|
|
|
+ log.Debug("current path is %v", path)
|
|
|
|
+
|
|
// 初始化router
|
|
// 初始化router
|
|
fs.Router()
|
|
fs.Router()
|
|
log.Debug("main start listen on port :5678")
|
|
log.Debug("main start listen on port :5678")
|