How to add seed data to postgres database, rails app

The builder does not have access to the database. While this can be done as a part of every release, you generally only want this to be done once. Try removing those lines from your Dockerfile and after you have deployed (i.e., without seed data), try running:

flyctl ssh console -C "/app/bin/rails db:seed"
1 Like