Z
Z
Zaur Ashurbekov2014-10-19 20:24:35
Ruby on Rails
Zaur Ashurbekov, 2014-10-19 20:24:35

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

2 answer(s)
A
anyd3v, 2014-10-19
@zaurius

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.

S
Stamm, 2014-10-22
@Stamm

Link sqlite file via capistrano

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question