From 0429bbb19db777bf5979df02ab21815b33541e7e Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 15 Apr 2018 20:27:10 -0700 Subject: Simplify Heroku deployment --- cli/cli.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cli') 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) } -- cgit v1.2.3