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
|
||||
|
||||
@@ -125,4 +125,4 @@ Run your backend to test it out:
|
||||
npm run start
|
||||
```
|
||||
|
||||
Then, try out your strategy using any of the [Products](/api/store/#tag/Product) or [Carts](/api/store/#tag/Cart) endpoints which include retrieving product variants and line items respectively. You should then see the prices in the response based on your implemented strategy.
|
||||
Then, try out your strategy using any of the [Products](/api/store/#tag/Product) or [Carts](/api/store/#tag/Cart) endpoints which include retrieving product variants and line items respectively. You should then see the prices in the response based on your implemented strategy.
|
||||
|
||||
Reference in New Issue
Block a user