fix(create-medusa-app): run links sync during setup (#8215)
Run `links sync` command along with running migrations
This commit is contained in:
1 parent
fb29b958fa
commit
ac21f35b2c
2 files changed
+2
-2
No files matched your search
@@ -60,7 +60,7 @@ jobs:
|
|||||||
working-directory: ../cli-test
|
working-directory: ../cli-test
|
||||||
|
|
||||||
- name: Run migrations
|
- name: Run migrations
|
||||||
run: medusa migrations run
|
run: medusa migrations run && medusa links sync
|
||||||
working-directory: ../cli-test
|
working-directory: ../cli-test
|
||||||
|
|
||||||
- name: Create admin user
|
- name: Create admin user
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export default async ({
|
|||||||
await processManager.runProcess({
|
await processManager.runProcess({
|
||||||
process: async () => {
|
process: async () => {
|
||||||
const proc = await execute(
|
const proc = await execute(
|
||||||
["npx medusa migrations run", npxOptions],
|
["npx medusa migrations run && npx medusa links sync", npxOptions],
|
||||||
{ verbose, needOutput: true }
|
{ verbose, needOutput: true }
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user