mirror of
https://github.com/goravel/goravel.git
synced 2025-09-26 20:51:19 +08:00
22 lines
354 B
Go
22 lines
354 B
Go
package main
|
|
|
|
import (
|
|
"github.com/goravel/framework/facades"
|
|
|
|
"goravel/bootstrap"
|
|
)
|
|
|
|
func main() {
|
|
// This bootstraps the framework and gets it ready for use.
|
|
bootstrap.Boot()
|
|
|
|
// Start http server by facades.Route.
|
|
go func() {
|
|
if err := facades.Route.Run(); err != nil {
|
|
facades.Log.Errorf("Route run error: %v", err)
|
|
}
|
|
}()
|
|
|
|
select {}
|
|
}
|