added --no-owner flag to script to avoid owner error (#9196)
* added --no-owner flag to script to avoid owner error * Update copy-db.js Co-authored-by: Tibor Leupold <tiborl@mozillafoundation.org> Co-authored-by: Tibor Leupold <tiborl@mozillafoundation.org>
This commit is contained in:
Родитель
bc54011f2e
Коммит
444fa06636
|
@ -105,7 +105,9 @@ console.log(`Building user roles...`);
|
|||
|
||||
console.log(`Importing database snapshot...`);
|
||||
run(`docker cp ${DUMP_FILE} ${IMAGE_NAMES.POSTGRES}:/`);
|
||||
postgres(`pg_restore ${DB_FLAGS} -dwagtail ${DUMP_FILE}`);
|
||||
// Based on the Heroku docs for restoring to local database:
|
||||
// https://devcenter.heroku.com/articles/heroku-postgres-import-export#restore-to-local-database
|
||||
postgres(`pg_restore ${DB_FLAGS} -dwagtail --no-acl --no-owner ${DUMP_FILE}`);
|
||||
|
||||
console.log(`Updating site bindings...`);
|
||||
run(`inv manage fix_local_site_bindings`, true, silent);
|
||||
|
|
Загрузка…
Ссылка в новой задаче