Search code examples
ruby-on-railsrubyheroku

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


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


Solution

  • 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.