Browse Source

fix: [gogocarto] fix service from failing if mongo container is not present

boris/docuseal
Valentin Lab 1 year ago
parent
commit
4510362611
  1. 4
      gogocarto/hooks/mongo_database-relation-joined

4
gogocarto/hooks/mongo_database-relation-joined

@ -40,6 +40,10 @@ db.Configuration.findOneAndUpdate(
{ \$set: { "dbName" : "$DBNAME"} }
);
EOF
info Removing cache before migration
rm -rf "$SERVICE_DATASTORE/var/cache/gogocarto/prod/"*
info Launch migration
symphony db:migrate
} || {
err "Mongo database migration failed."

Loading…
Cancel
Save