* Replace pkger with go:embed for bundling the admin. Closes #844 * Remove references to pkged.go * Point tests to use an updated version of Go * Add comment to new exported function * Cleanup * Add a dummy pkged.go to alert people to stop using it. * Add simple browser test to make sure the admin is available and renders * Don't panic
This commit is contained in:
4
main.go
4
main.go
@@ -5,7 +5,6 @@ import (
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/markbates/pkger"
|
||||
"github.com/owncast/owncast/logging"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
@@ -18,9 +17,6 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Enable bundling of admin assets
|
||||
_ = pkger.Include("/admin")
|
||||
|
||||
dbFile := flag.String("database", "", "Path to the database file.")
|
||||
logDirectory := flag.String("logdir", "", "Directory where logs will be written to")
|
||||
backupDirectory := flag.String("backupdir", "", "Directory where backups will be written to")
|
||||
|
||||
Reference in New Issue
Block a user