1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Simplify Heroku deployment

This commit is contained in:
Frédéric Guillot 2018-04-15 20:27:10 -07:00
parent 45dde0cf4a
commit 0429bbb19d
3 changed files with 28 additions and 0 deletions

View file

@ -67,5 +67,15 @@ func Parse() {
return
}
// Run migrations and start the deamon.
if cfg.RunMigrations() {
store.Migrate()
}
// Create admin user and start the deamon.
if cfg.CreateAdmin() {
createAdmin(store)
}
daemon.Run(cfg, store)
}