gitlink_blockchain/main.go

13 lines
325 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package main
import (
"github.com/sulenn/trustie-fisco-bcos/modules/os"
"github.com/sulenn/trustie-fisco-bcos/routers/routes"
)
func main() {
m := routes.NewMacaron()
os.SetListeningPort("8000") // 设置监听端口
m.Run() // 如果存在环境变量 port则读取。否则默认监听 4000
}