mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-23 06:18:59 +00:00
7e80ade24b
Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/263 Reviewed-by: 6543 <6543@obermui.de> Co-authored-by: crapStone <me@crapstone.dev> Co-committed-by: crapStone <me@crapstone.dev>
22 lines
359 B
Go
22 lines
359 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
_ "github.com/joho/godotenv/autoload"
|
|
"github.com/rs/zerolog/log"
|
|
|
|
"codeberg.org/codeberg/pages/cli"
|
|
"codeberg.org/codeberg/pages/server"
|
|
)
|
|
|
|
func main() {
|
|
app := cli.CreatePagesApp()
|
|
app.Action = server.Serve
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
|
log.Error().Err(err).Msg("A fatal error occurred")
|
|
os.Exit(1)
|
|
}
|
|
}
|