mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Bundle and serve admin (#317)
* WIP with admin bundling * Current state of the admin is bundled * Update admin bundler to work with binary bundling * Log detail about the admin interface. Closes #312 * Move bundle script to the build dir * Update to current version of admin * Commit updated API documentation Co-authored-by: Owncast <owncast@owncast.online>
This commit is contained in:
4
main.go
4
main.go
@ -4,6 +4,7 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
"github.com/markbates/pkger"
|
||||
"github.com/owncast/owncast/logging"
|
||||
"github.com/sirupsen/logrus"
|
||||
log "github.com/sirupsen/logrus"
|
||||
@ -29,6 +30,8 @@ func main() {
|
||||
configureLogging()
|
||||
|
||||
log.Infoln(getReleaseString())
|
||||
// Enable bundling of admin assets
|
||||
pkger.Include("/admin")
|
||||
|
||||
configFile := flag.String("configFile", "config.yaml", "Config File full path. Defaults to current folder")
|
||||
dbFile := flag.String("database", "", "Path to the database file.")
|
||||
@ -72,7 +75,6 @@ func main() {
|
||||
log.Error("failed to start/run the router")
|
||||
panic(err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//getReleaseString gets the version string
|
||||
|
||||
Reference in New Issue
Block a user