fix(create-medusa-app): run links sync during setup (#8215)
Run `links sync` command along with running migrations
This commit is contained in:
2
.github/workflows/test-cli-with-database.yml
vendored
2
.github/workflows/test-cli-with-database.yml
vendored
@@ -60,7 +60,7 @@ jobs:
|
||||
working-directory: ../cli-test
|
||||
|
||||
- name: Run migrations
|
||||
run: medusa migrations run
|
||||
run: medusa migrations run && medusa links sync
|
||||
working-directory: ../cli-test
|
||||
|
||||
- name: Create admin user
|
||||
|
||||
@@ -138,7 +138,7 @@ export default async ({
|
||||
await processManager.runProcess({
|
||||
process: async () => {
|
||||
const proc = await execute(
|
||||
["npx medusa migrations run", npxOptions],
|
||||
["npx medusa migrations run && npx medusa links sync", npxOptions],
|
||||
{ verbose, needOutput: true }
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user