docs: small fixes for guides using the start command (#3799)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user