docs: small fixes for guides using the start command (#3799)
This commit is contained in:
1 parent
7f6dc44beb
commit
99cc4b0571
1 file changed
+7
-3
@@ -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
|
```bash npm2yarn
|
||||||
npm run start
|
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:
|
If the scheduled job was registered successfully, you should see a message similar to this logged on your Medusa backend:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in new issue
Block a user