split build task into parallel and non-parallel versions
This allows FoundKey to be built on systems with 2GB or less RAM without swapping or running out of memory.
This commit is contained in:
parent
11518d2f26
commit
83373e0c51
2 changed files with 5 additions and 1 deletions
|
@ -70,6 +70,8 @@ Build foundkey with the following:
|
||||||
|
|
||||||
`NODE_ENV=production yarn build`
|
`NODE_ENV=production yarn build`
|
||||||
|
|
||||||
|
If your system has at least 4GB of RAM, run `NODE_ENV=production yarn build-parallel` to speed up build times.
|
||||||
|
|
||||||
If you're still encountering errors about some modules, use node-gyp:
|
If you're still encountering errors about some modules, use node-gyp:
|
||||||
|
|
||||||
1. `npx node-gyp configure`
|
1. `npx node-gyp configure`
|
||||||
|
@ -182,6 +184,7 @@ Use git to pull in the latest changes and rerun the build and migration commands
|
||||||
git pull
|
git pull
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
yarn install
|
yarn install
|
||||||
|
# Use build-parallel if your system has 4GB or more RAM and want faster builds
|
||||||
NODE_ENV=production yarn build
|
NODE_ENV=production yarn build
|
||||||
yarn migrate
|
yarn migrate
|
||||||
```
|
```
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn workspaces foreach --parallel --topological run build && yarn run gulp",
|
"build": "yarn workspaces foreach --topological run build && yarn run gulp",
|
||||||
|
"build-parallel": "yarn workspaces foreach --parallel --topological run build && yarn run gulp",
|
||||||
"start": "yarn workspace backend run start",
|
"start": "yarn workspace backend run start",
|
||||||
"start:test": "yarn workspace backend run start:test",
|
"start:test": "yarn workspace backend run start:test",
|
||||||
"init": "yarn migrate",
|
"init": "yarn migrate",
|
||||||
|
|
Loading…
Reference in a new issue