mirror of
https://github.com/strapi/strapi.git
synced 2025-09-03 13:50:38 +00:00
Updating deployment.md with Windows settings
This add's more clarity for Windows users for an easy way to set the NODE_ENV variables without headache.
This commit is contained in:
parent
158a102db7
commit
cffe603ccd
@ -55,6 +55,16 @@ NODE_ENV=production yarn build
|
||||
NODE_ENV=production npm run build
|
||||
```
|
||||
|
||||
::: tab Windows
|
||||
|
||||
```bash
|
||||
npm install cross-env
|
||||
```
|
||||
Then in your `package.json` scripts section:
|
||||
```bash
|
||||
"production": "cross-env NODE_ENV=production npm run build"
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
::::
|
||||
@ -77,6 +87,16 @@ NODE_ENV=production yarn start
|
||||
NODE_ENV=production npm start
|
||||
```
|
||||
|
||||
::: tab Windows
|
||||
|
||||
```bash
|
||||
npm install cross-env
|
||||
```
|
||||
Then in your `package.json` scripts section:
|
||||
```bash
|
||||
"production": "cross-env NODE_ENV=production npm start"
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
::::
|
||||
|
Loading…
x
Reference in New Issue
Block a user