samedi 5 avril 2014

Ruby sur rails 3 - toutes les données perdues lorsque vous appuyez sur la nouvelle version à AWS à l'aide d'élastique haricot magique - Stack Overflow


I am having a really annoying problem when deploying my Rails app to AWS using elastic beanstalk. Everytime I made some changes to my production code and did "git aws.push", all previous data in my RDS instance would be lost. I tried many things, like creating the database from a snapshot, but it doesn't seem to work...Can anyone who has experience give me some tips? That would be highly appreciated!!!




If you are not using existing RDS database with your Elastic Beanstalk application, then it could be that your associated RDS database was created with the default deletion policy - "Delete".


There's a note on Elastic Beanstalk RDS DB creation page:



Your RDS DB Instance will be deleted if you terminate the environment. Create a snapshot to save your data.



"Create Snapshot" is another option for deletion policy.


Since Elastic Beanstalk environment is terminated on each deployment, it might be the case for your RDS database data loss on each git push.



I am having a really annoying problem when deploying my Rails app to AWS using elastic beanstalk. Everytime I made some changes to my production code and did "git aws.push", all previous data in my RDS instance would be lost. I tried many things, like creating the database from a snapshot, but it doesn't seem to work...Can anyone who has experience give me some tips? That would be highly appreciated!!!



If you are not using existing RDS database with your Elastic Beanstalk application, then it could be that your associated RDS database was created with the default deletion policy - "Delete".


There's a note on Elastic Beanstalk RDS DB creation page:



Your RDS DB Instance will be deleted if you terminate the environment. Create a snapshot to save your data.



"Create Snapshot" is another option for deletion policy.


Since Elastic Beanstalk environment is terminated on each deployment, it might be the case for your RDS database data loss on each git push.


0 commentaires:

Enregistrer un commentaire