Minor restructure

This commit is contained in:
Indrek Haav 2022-11-24 20:14:49 +02:00 committed by GitHub
parent d73d9fc6f2
commit 13f4ac4d27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 22 deletions

View File

@ -98,15 +98,7 @@ If an unsupported version is chosen, the PhotoPrism service will fail to start w
See <https://dl.photoprism.org/tensorflow> for download URLs for other platforms (like ARM).
### System setup
Instead of running PhotoPrism as root or your own user, it is advisable to create a separate user account for it:
```shell
$ sudo useradd --system photoprism
```
#### Application directory
### Download and install PhotoPrism
Create a directory where the compiled PhotoPrism code will be stored:
@ -114,17 +106,6 @@ Create a directory where the compiled PhotoPrism code will be stored:
$ sudo mkdir -p /opt/photoprism/bin
```
#### Storage directory
Create a directory where PhotoPrism will store files like metadata, thumbnails, database (if using SQLite) and so on:
```shell
$ sudo mkdir /var/lib/photoprism
$ sudo chown photoprism:photoprism /var/lib/photoprism
```
### Download and install PhotoPrism
Now download the PhotoPrism source code:
```shell
@ -151,9 +132,22 @@ $ 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:
### Configure PhotoPrism
Go to `/var/lib/photoprism` and create a file for PhotoPrism configuration parameters:
Instead of running PhotoPrism as root or your own user, it is advisable to create a separate user account for it:
```shell
$ sudo useradd --system photoprism
```
Create a directory where PhotoPrism will store files like metadata, thumbnails, database (if using SQLite) and so on:
```shell
$ sudo mkdir /var/lib/photoprism
$ sudo chown photoprism:photoprism /var/lib/photoprism
```
Go to the newly added directory and create a file for PhotoPrism configuration parameters:
```shell
$ cd /var/lib/photoprism