Use local user directories for installation #66

This commit is contained in:
Michael Mayer
2019-06-29 19:34:55 +02:00
parent 775cfd61f3
commit 243795c7d5
2 changed files with 21 additions and 20 deletions

View File

@@ -25,17 +25,18 @@ start:
migrate: migrate:
go run cmd/photoprism/photoprism.go migrate go run cmd/photoprism/photoprism.go migrate
install-bin: install-bin:
$(info Building prodution binary...) scripts/build.sh prod ~/.local/bin/$(BINARY_NAME)
scripts/build.sh prod /usr/local/bin/$(BINARY_NAME)
install-assets: install-assets:
$(info Installing assets in /srv/photoprism...) $(info Installing assets in ~/photoprism)
mkdir -p /srv/photoprism/config mkdir -p ~/.config/photoprism
mkdir -p /srv/photoprism/photos mkdir -p ~/.cache/photoprism
mkdir -p /srv/photoprism/cache mkdir -p ~/Pictures/Originals
mkdir -p /srv/photoprism/resources/database mkdir -p ~/Pictures/Import
cp -r assets/resources/static assets/resources/templates assets/resources/nasnet /srv/photoprism/resources mkdir -p ~/Pictures/Export
rsync -a -v --ignore-existing assets/config/*.yml /srv/photoprism/config mkdir -p ~/.local/share/photoprism/resources/database
find /srv/photoprism -name '.*' -type f -delete cp -r assets/resources/static assets/resources/templates assets/resources/nasnet ~/.local/share/photoprism/resources
rsync -a -v --ignore-existing assets/config/*.yml ~/.config/photoprism
find ~/.local/share/photoprism -name '.*' -type f -delete
dep-js: dep-js:
(cd frontend && npm install) (cd frontend && npm install)
dep-go: dep-go:

View File

@@ -1,20 +1,20 @@
debug: false debug: false
assets-path: /srv/photoprism config-path: ~/.config/photoprism
config-path: /srv/photoprism/config cache-path: ~/.cache/photoprism
resources-path: /srv/photoprism/resources assets-path: ~/.local/share/photoprism
cache-path: /srv/photoprism/cache resources-path: ~/.local/share/photoprism/resources
originals-path: /srv/photoprism/photos/originals originals-path: ~/Pictures/Originals
import-path: /srv/photoprism/photos/import import-path: ~/Pictures/Import
export-path: /srv/photoprism/photos/export export-path: ~/Pictures/Export
sql-host: localhost sql-host: localhost
sql-port: 4000 sql-port: 4000
sql-password: photoprism sql-password: photoprism
http-host: http-host:
http-mode: release http-mode: release
http-port: 80 http-port: 2342
http-password: http-password:
database-driver: internal database-driver: internal
database-dsn: root:photoprism@tcp(localhost:4000)/photoprism?parseTime=true database-dsn: root:photoprism@tcp(localhost:4000)/photoprism?parseTime=true
daemon-pid-path: /srv/photoprism/photoprism.pid daemon-pid-path: ~/.local/share/photoprism/photoprism.pid
daemon-log-path: /srv/photoprism/photoprism.log daemon-log-path: ~/.local/share/photoprism/photoprism.log
daemon-mode: false daemon-mode: false