aboutsummaryrefslogtreecommitdiffhomepage
path: root/cli
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-04-15 20:27:10 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-04-15 21:07:59 -0700
commit0429bbb19db777bf5979df02ab21815b33541e7e (patch)
tree636dc7d41bdef8805e55e4d13ad7065958eb7c56 /cli
parent45dde0cf4a5794f36fb278e24e2cd9899d03922a (diff)
Simplify Heroku deployment
Diffstat (limited to 'cli')
-rw-r--r--cli/cli.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/cli.go b/cli/cli.go
index 1409229..84c0695 100644
--- a/cli/cli.go
+++ b/cli/cli.go
@@ -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)
}