Show More
@@ -146,8 +146,9 b' Place the backup file into :file:`.custom/db_dump`' | |||||
146 |
|
146 | |||
147 | Run this only if docker-based DB is selected. Skip otherwise |
|
147 | Run this only if docker-based DB is selected. Skip otherwise | |
148 |
|
148 | |||
149 |
|
149 | Cleanup previous db created by init script, and re-create it. | ||
150 |
Restore the database into docker container running DB. |
|
150 | Restore the database into docker container running DB. | |
|
151 | Run the ./rcstack cli db command: | |||
151 |
|
152 | |||
152 | .. code-block:: bash |
|
153 | .. code-block:: bash | |
153 |
|
154 | |||
@@ -162,6 +163,10 b' Restore the database into docker container running DB. Run the ./rcstack cli db ' | |||||
162 | psql (14.9 (Debian 14.9-1.pgdg120+1)) |
|
163 | psql (14.9 (Debian 14.9-1.pgdg120+1)) | |
163 | Type "help" for help. |
|
164 | Type "help" for help. | |
164 |
|
165 | |||
|
166 | rhodecode=# \connect template1 | |||
|
167 | template1=# drop database rhodecode; | |||
|
168 | template1=# create database rhodecode; | |||
|
169 | template1=# \connect rhodecode | |||
165 | rhodecode=# \i /var/rc-data-dump/postgresql-db-backup.sql |
|
170 | rhodecode=# \i /var/rc-data-dump/postgresql-db-backup.sql | |
166 |
|
171 | |||
167 |
|
172 | |||
@@ -260,3 +265,29 b' This is where a first downtime of previously ran setup would occur.' | |||||
260 |
|
265 | |||
261 | ./rcstack stack all up -d |
|
266 | ./rcstack stack all up -d | |
262 |
|
267 | |||
|
268 | ||||
|
269 | ||||
|
270 | 10. Fix DB paths | |||
|
271 | ++++++++++++++++ | |||
|
272 | ||||
|
273 | Docker internally changed the paths used before, he're a way to change it using ishell. But this can | |||
|
274 | be also adjusted in the UI | |||
|
275 | ||||
|
276 | .. code-block:: bash | |||
|
277 | ||||
|
278 | ./rcstack cli ishell | |||
|
279 | ||||
|
280 | ||||
|
281 | .. code-block:: python | |||
|
282 | ||||
|
283 | ui1 = RhodeCodeUi.query().filter(RhodeCodeUi.ui_key=='usercache').scalar() | |||
|
284 | ui2 = RhodeCodeUi.query().filter(RhodeCodeUi.ui_key=='store_location').scalar() | |||
|
285 | ui3 = RhodeCodeUi.query().filter(RhodeCodeUi.ui_key=='/').scalar() | |||
|
286 | ||||
|
287 | ui1.ui_value = '/var/opt/rhodecode_repo_store/.cache/lfs_store' | |||
|
288 | ui2.ui_value = '/var/opt/rhodecode_repo_store/.cache/largefiles' | |||
|
289 | ui3.ui_value = '/var/opt/rhodecode_repo_store' | |||
|
290 | ||||
|
291 | Session().add(ui1);Session().commit() | |||
|
292 | Session().add(ui2);Session().commit() | |||
|
293 | Session().add(ui3);Session().commit() |
General Comments 0
You need to be logged in to leave comments.
Login now