mirror of
https://git.joinfirefish.org/firefish/firefish.git
synced 2024-05-18 09:41:12 +02:00
docs: specify max-old-space-size in example config files
This commit is contained in:
parent
8489066130
commit
ec7578e78e
|
@ -17,6 +17,7 @@ services:
|
||||||
# - web
|
# - web
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
|
NODE_OPTIONS: --max-old-space-size=3072
|
||||||
volumes:
|
volumes:
|
||||||
- ./custom:/firefish/custom:ro
|
- ./custom:/firefish/custom:ro
|
||||||
- ./files:/firefish/files
|
- ./files:/firefish/files
|
||||||
|
|
|
@ -154,7 +154,7 @@ sudo apt install ffmpeg
|
||||||
1. Build
|
1. Build
|
||||||
```sh
|
```sh
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile
|
||||||
NODE_ENV=production pnpm run build
|
NODE_ENV=production NODE_OPTIONS='--max-old-space-size=3072' pnpm run build
|
||||||
```
|
```
|
||||||
1. Execute database migrations
|
1. Execute database migrations
|
||||||
```sh
|
```sh
|
||||||
|
@ -242,6 +242,7 @@ In this instruction, we use [Caddy](https://caddyserver.com/) to make the Firefi
|
||||||
WorkingDirectory=/home/firefish/firefish
|
WorkingDirectory=/home/firefish/firefish
|
||||||
Environment="NODE_ENV=production"
|
Environment="NODE_ENV=production"
|
||||||
Environment="npm_config_cache=/tmp"
|
Environment="npm_config_cache=/tmp"
|
||||||
|
Environment="NODE_OPTIONS=--max-old-space-size=3072"
|
||||||
# uncomment the following line if you use jemalloc (note that the path varies on different environments)
|
# uncomment the following line if you use jemalloc (note that the path varies on different environments)
|
||||||
# Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2"
|
# Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2"
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
|
|
Loading…
Reference in a new issue