Added section about updating PhotoPrism
This commit is contained in:
parent
b911aaf6f1
commit
d40c1caaa5
34
README.md
34
README.md
|
@ -226,6 +226,40 @@ $ sudo systemctl enable photoprism
|
|||
|
||||
If all went well, you should be able to open `http://YOUR-IP-HERE:2342` in a web browser and see the PhotoPrism interface. Log in as "admin" with the password set in the `.env` file.
|
||||
|
||||
### Updating PhotoPrism
|
||||
|
||||
New versions of PhotoPrism are published to their Github repository: https://github.com/photoprism/photoprism/releases
|
||||
|
||||
If a new version is published, the following steps need to be done.
|
||||
|
||||
First, stop the PhotoPrism service:
|
||||
|
||||
```shell
|
||||
$ sudo systemctl stop photoprism
|
||||
```
|
||||
|
||||
Then, navigate to the PhotoPrism source code directory and pull the latest version from Github:
|
||||
|
||||
```shell
|
||||
$ cd photoprism
|
||||
$ git pull --force
|
||||
```
|
||||
|
||||
Re-run the build steps from above:
|
||||
|
||||
```shell
|
||||
$ sudo make all
|
||||
$ sudo ./scripts/build.sh prod /opt/photoprism/bin/photoprism
|
||||
$ sudo cp -a assets/ /opt/photoprism/assets/
|
||||
$ sudo chown -R photoprism:photoprism /opt/photoprism
|
||||
```
|
||||
|
||||
Finally, restart the PhotoPrism service:
|
||||
|
||||
```shell
|
||||
$ sudo systemctl start photoprism
|
||||
```
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
Run the following command to check the service status:
|
||||
|
|
Loading…
Reference in New Issue