fix(medusa): fixes db setup command to not load connection before creating db (#13653)
This commit is contained in:
5
.changeset/quick-clocks-happen.md
Normal file
5
.changeset/quick-clocks-happen.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
fix(medusa): fixes db setup command to not load connection before creating db
|
||||
@@ -12,7 +12,9 @@ const main = async function ({
|
||||
executeAllLinks,
|
||||
executeSafeLinks,
|
||||
}) {
|
||||
const container = await initializeContainer(directory)
|
||||
let container = await initializeContainer(directory, {
|
||||
skipDbConnection: true,
|
||||
})
|
||||
const logger = container.resolve(ContainerRegistrationKeys.LOGGER)
|
||||
|
||||
try {
|
||||
@@ -21,6 +23,8 @@ const main = async function ({
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
container = await initializeContainer(directory)
|
||||
|
||||
const migrated = await migrate({
|
||||
directory,
|
||||
skipLinks,
|
||||
|
||||
Reference in New Issue
Block a user