X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7bbb0940b0398d17bb85fe410c3f23e4cd6ec8d6..2c8bbcd431eb3aee1b4fd650b8268979b8da556c:/lib/boot/seed.go diff --git a/lib/boot/seed.go b/lib/boot/seed.go index ce5d296bdd..b43d907201 100644 --- a/lib/boot/seed.go +++ b/lib/boot/seed.go @@ -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 }