docs: fix start command in deployment guides (#11571)

This commit is contained in:
Shahed Nasser
2025-02-24 12:26:21 +02:00
committed by GitHub
parent 5071001aea
commit a9e2ef6c20
5 changed files with 9483 additions and 9487 deletions

View File

@@ -218,16 +218,16 @@ Feel free to add any other relevant environment variables, such as for integrati
### Set Start Command
The Medusa application's production build, which is created using the `build` command, outputs the Medusa application to `.medusa/server`.
So, you must run the `start` command from the `.medusa/server` directory.
The Medusa application's production build, which is created using the `build` command, outputs the Medusa application to `.medusa/server`. So, you must install the dependencies in the `.medusa/server` directory, then run the `start` command in it.
If your hosting provider doesn't support setting a current-working directory, set the start command to the following:
```bash npm2yarn
cd .medusa/server && npm run predeploy && npm run start
cd .medusa/server && npm install && npm run predeploy && npm run start
```
Notice that you run the `predeploy` command before starting the Medusa application to run migrations and sync links whenever there's an update.
### Set Backend URL in Admin Configuration
After youve obtained the Medusa applications URL, add the following configuration to `medusa-config.ts`:
@@ -293,14 +293,12 @@ Feel free to add any other relevant environment variables, such as for integrati
### Set Start Command
The Medusa application's production build, which is created using the `build` command, outputs the Medusa application to `.medusa/server`.
So, you must run the `start` command from the `.medusa/server` directory.
The Medusa application's production build, which is created using the `build` command, outputs the Medusa application to `.medusa/server`. So, you must install the dependencies in the `.medusa/server` directory, then run the `start` command in it.
If your hosting provider doesn't support setting a current-working directory, set the start command to the following:
```bash npm2yarn
cd .medusa/server && npm run predeploy && npm run start
cd .medusa/server && npm run install && npm run start
```
---

View File

@@ -104,7 +104,7 @@ export const generatedEditDates = {
"app/learn/fundamentals/custom-cli-scripts/seed-data/page.mdx": "2024-12-09T14:38:06.385Z",
"app/learn/fundamentals/environment-variables/page.mdx": "2025-02-18T15:29:37.717Z",
"app/learn/build/page.mdx": "2024-12-09T11:05:17.383Z",
"app/learn/deployment/general/page.mdx": "2024-11-25T14:33:50.439Z",
"app/learn/deployment/general/page.mdx": "2025-02-24T07:38:02.164Z",
"app/learn/fundamentals/workflows/multiple-step-usage/page.mdx": "2024-11-25T16:19:32.169Z",
"app/learn/installation/page.mdx": "2025-01-31T13:16:57.883Z",
"app/learn/fundamentals/data-models/check-constraints/page.mdx": "2024-12-06T14:34:50.384Z",

File diff suppressed because it is too large Load Diff

View File

@@ -240,7 +240,7 @@ To set the `start` command of your Medusa application in server mode:
5. Enter the following in the input and click the check mark button:
```bash npm2yarn
cd .medusa/server && npm run predeploy && npm run start
cd .medusa/server && npm install && npm run predeploy && npm run start
```
### Deploy Changes
@@ -346,7 +346,7 @@ To set the `start` command of your Medusa application in worker mode:
5. Enter the following in the input and click the check mark button:
```bash npm2yarn
cd .medusa/server && npm run start
cd .medusa/server && npm install && npm run start
```
### Deploy Changes

View File

@@ -102,7 +102,7 @@ export const generatedEditDates = {
"app/contribution-guidelines/docs/page.mdx": "2024-12-12T11:06:12.250Z",
"app/create-medusa-app/page.mdx": "2025-01-16T10:00:25.975Z",
"app/deployment/admin/vercel/page.mdx": "2024-10-16T08:10:29.377Z",
"app/deployment/medusa-application/railway/page.mdx": "2025-02-06T13:28:24.999Z",
"app/deployment/medusa-application/railway/page.mdx": "2025-02-24T07:35:43.421Z",
"app/deployment/storefront/vercel/page.mdx": "2025-01-06T12:19:31.142Z",
"app/deployment/page.mdx": "2024-11-25T14:31:45.277Z",
"app/integrations/page.mdx": "2024-12-16T16:46:12.395Z",