mirror of
https://github.com/hay-kot/homebox.git
synced 2025-05-30 00:52:29 +00:00
feat: automate demo-site deployment and configuration (#42)
* add demo env variable * setup initialization when demo * disable password when in demo mode * expose demo status to API * improve UI for demo instance
This commit is contained in:
parent
eca071f974
commit
92368dabf8
12 changed files with 166 additions and 45 deletions
|
@ -144,5 +144,11 @@ func run(cfg *config.Config) error {
|
|||
}
|
||||
})
|
||||
|
||||
// TODO: Remove through external API that does setup
|
||||
if cfg.Demo {
|
||||
log.Info().Msg("Running in demo mode, creating demo data")
|
||||
app.SetupDemo()
|
||||
}
|
||||
|
||||
return app.server.Start(routes)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue