18870: Need to declare NODES as array
[arvados.git] / lib / boot / seed.go
index ce5d296bdd19a97042a8f43912e881c8172f460e..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, []string{"ARVADOS_RAILS_LOG_TO_STDOUT=1"}, "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
        }