Does anyone know why my heroku app doesn't access any of the data from my seeds.rb file?

Viewed 42

I recently deployed an app to heroku but for some reason the heroku app doesn't access any of the seed data from the seed.rb file but when I run the app locally the data shows up just fine. Would love assistance

1 Answers

Try to run the rails task as follows:

heroku run rails db:seed -a name_of_your_heroku_app

You may need to do heroku login first.

Related