docs: clarify steps for medusa build (#11324)
This commit is contained in:
1 parent
742babfe3f
commit
bc53716d8d
1 file changed
+2
-7
@@ -59,15 +59,10 @@ When `NODE_ENV=production`, the Medusa application loads the environment variabl
|
|||||||
|
|
||||||
</Note>
|
</Note>
|
||||||
|
|
||||||
- In the system environment variables, set `NODE_ENV` to `production`:
|
- Set `NODE_ENV` to `production` in the system environment variable, then start the Medusa application from `.medusa/server`:
|
||||||
|
|
||||||
```bash
|
|
||||||
NODE_ENV=production
|
|
||||||
```
|
|
||||||
|
|
||||||
- Use the `start` command in the `.medusa/server` directory to run the application:
|
|
||||||
|
|
||||||
```bash npm2yarn title=".medusa/server"
|
```bash npm2yarn title=".medusa/server"
|
||||||
|
export NODE_ENV=production
|
||||||
npm run start
|
npm run start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user