Merge branch '18947-githttpd'
[arvados.git] / lib / boot / seed.go
index d1cf2a870975b662d8318d9ef6a25f08ce204c93..b43d907201d47a44c013ec7d201955f7f5145377 100644 (file)
@@ -20,7 +20,10 @@ func (seedDatabase) Run(ctx context.Context, fail func(error), super *Supervisor
        if err != nil {
                return err
        }
-       err = super.RunProgram(ctx, "services/api", nil, railsEnv, "bundle", "exec", "rake", "db:setup")
+       if super.ClusterType == "production" {
+               return nil
+       }
+       err = super.RunProgram(ctx, "services/api", runOptions{env: railsEnv}, "bundle", "exec", "rake", "db:setup")
        if err != nil {
                return err
        }