main.go 623 字节
package main

import _ "openapi/pkg/log"

import (
	"github.com/astaxie/beego"
	"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"

	_ "openapi/pkg/infrastructure/bgorm"
	_ "openapi/pkg/port/beego"
)

func main() {
	defer func() {
		log.Info("server on stop!")
	}()
	log.Info("server on start!")
	//constant.DebugConfig()

	//https
	beego.BConfig.Listen.EnableHTTPS = true
	beego.BConfig.Listen.Graceful = true
	beego.BConfig.Listen.HTTPSPort = 443
	beego.BConfig.Listen.HTTPSCertFile = "conf/_.fjmaimaimai.com_bundle.crt"
	beego.BConfig.Listen.HTTPSKeyFile = "conf/fjmaimaimai.com_RSA.fjmaimaimai.com_RSA.key"

	beego.Run()
}