Add note about non-Bash shells and potential makefile issues

This commit is contained in:
Indrek Haav 2022-03-23 20:16:58 +02:00 committed by GitHub
parent 2c7ef3ad1e
commit 2c3d5f1e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -138,12 +138,16 @@ $ sudo cp -a assets/ /opt/photoprism/assets/
$ sudo chown -R photoprism:photoprism /opt/photoprism
```
The dependencies step can produce errors when running in shells like ZSH. Ensure you're using Bash if this happens.
Building the front-end can take more than 1 GB of RAM, and the build might crash with Javascript running out of memory. If using a virtual machine, allocate at least 2 GB. Alternatively, you can try limiting Node's memory usage as follows (adjust the number based on available RAM on your system):
```shell
$ NODE_OPTIONS=--max_old_space_size=1024 make all
```
If you're still having problems, consult [the PhotoPrism makefile](https://github.com/photoprism/photoprism/blob/release/Makefile#L34) for the steps that `make all` executes, and try running them individually to isolate the problem.
### Configure PhotoPrism:
Go to `/var/lib/photoprism` and create a file for PhotoPrism configuration parameters: