ruby - Will Rails db Data be Lost on Redeploy to Heroku? -
i've been searching , doing research can't seem find articles directly talking this. have art gallery rails app around 6 models of different attributes, pieces of art, etc. when make changes site , redeploy, databases reset? or postgres , rails app separate on heroku?
i read takes of data , puts seed.rb
repopulates databases seed data once it's redeployed? sound right? insight helpful. thank you
if you're using database, data won't lost on redeploys. data stored in /tmp
gets lost after deploy performed.
i'm going assume you're using heroku postgres. in case check out this, it's regularly create backups: https://devcenter.heroku.com/articles/heroku-postgres-backups
in seed.rb
should add data necessary set project, , nothing more. e.g. create admin.
Comments
Post a Comment