Answer the question
In order to leave comments, you need to log in
How not to lose the database after each deployment through Capistrano?
Hello Habr!
I deployed the application according to the recent manual on Habré through capistrano. But I ran into the problem of completely cleaning the database after rolling out the new version to the server. The question is, how can this be avoided? I use SQLite3, the database file was added to gitignore, it didn't show up on Githube.
Answer the question
In order to leave comments, you need to log in
There is also the phrase
"Each release for Capistrano is an independent entity. At the next deployment, it is completely replaced, so a number of files must be stored outside the application structure (as a rule, user-loaded and application-generated content, as well as a number of configs).", by default, sqlite will be created in the folder ... (I don’t remember) within the project. First of all, look in this direction.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question