diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-04-15 20:27:10 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-04-15 21:07:59 -0700 |
commit | 0429bbb19db777bf5979df02ab21815b33541e7e (patch) | |
tree | 636dc7d41bdef8805e55e4d13ad7065958eb7c56 /cli | |
parent | 45dde0cf4a5794f36fb278e24e2cd9899d03922a (diff) |
Simplify Heroku deployment
Diffstat (limited to 'cli')
-rw-r--r-- | cli/cli.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) } |