docs: small fixes for guides using the start command (#3799)

This commit is contained in:
Shahed Nasser
2023-04-11 14:40:55 +03:00
committed by GitHub
parent 7f6dc44beb
commit 99cc4b0571
3 changed files with 9 additions and 5 deletions

View File

@@ -190,4 +190,4 @@ Then, run your backend with the following command:
npm run start
```
If you try accessing the endpoints you added the middleware to, you should see your implementation working as expected.
If you try accessing the endpoints you added the middleware to, you should see your implementation working as expected.

View File

@@ -112,14 +112,18 @@ Cron Jobs only run while the Medusa backend is running.
:::
In your terminal run the following command to run your Medusa backend:
Before you run the Medusa backend, make sure to build your code that's under the `src` directory into the `dist` directory with the following command:
```bash npm2yarn
npm run build
```
Then, run the following command to start your Medusa backend:
```bash npm2yarn
npm run start
```
This builds your code under the `src` directory into the `dist` directory, then runs the Medusa backend.
If the scheduled job was registered successfully, you should see a message similar to this logged on your Medusa backend:
```bash