mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-06 06:17:02 +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>
21 lines
359 B
Go
21 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)
|
|
}
|
|
}
|