Frontend: Change port for acceptance tests

This commit is contained in:
Theresa Gresch 2020-06-28 12:53:13 +02:00
parent 6266a88c68
commit d6a74713f2
2 changed files with 4 additions and 4 deletions

View file

@ -24,14 +24,14 @@ upgrade: dep-upgrade-js dep-upgrade
clean-local: clean-local-config clean-local-share clean-local-cache
clean-install: clean-local dep build-js install-bin install-assets
acceptance-start:
go run cmd/photoprism/photoprism.go --public --database-driver sqlite --database-dsn ./storage/acceptance/index.db --import-path ./storage/acceptance/import --http-port=80 --settings-path ./storage/acceptance/settings --originals-path ./storage/acceptance/originals --sidecar-hidden=false --sidecar-json=false --sidecar-yaml=false start -d
go run cmd/photoprism/photoprism.go --public --database-driver sqlite --database-dsn ./storage/acceptance/index.db --import-path ./storage/acceptance/import --http-port=2343 --settings-path ./storage/acceptance/settings --originals-path ./storage/acceptance/originals --sidecar-hidden=false --sidecar-json=false --sidecar-yaml=false start -d
acceptance-restart:
go run cmd/photoprism/photoprism.go stop
cp -f storage/acceptance/backup.db storage/acceptance/index.db
cp -f storage/acceptance/settings/settingsBackup.yml storage/acceptance/settings/settings.yml
rm -rf storage/acceptance/originals/2010
rm -rf storage/acceptance/originals/2013
go run cmd/photoprism/photoprism.go --public --database-driver sqlite --database-dsn ./storage/acceptance/index.db --import-path ./storage/acceptance/import --http-port=80 --settings-path ./storage/acceptance/settings --originals-path ./storage/acceptance/originals --sidecar-hidden=false --sidecar-json=false --sidecar-yaml=false start -d
go run cmd/photoprism/photoprism.go --public --database-driver sqlite --database-dsn ./storage/acceptance/index.db --import-path ./storage/acceptance/import --http-port=2343 --settings-path ./storage/acceptance/settings --originals-path ./storage/acceptance/originals --sidecar-hidden=false --sidecar-json=false --sidecar-yaml=false start -d
acceptance-restore-db:
cp -f storage/acceptance/settings/settingsBackup.yml storage/acceptance/settings/settings.yml
cp -f storage/acceptance/backup.db storage/acceptance/index.db

View file

@ -8,9 +8,9 @@ services:
- photoprism-db
ports:
- "2342:2342" # Web Server (PhotoPrism)
- "80:80"
- "2343:2343"
expose:
- "80" # Acceptance Tests
- "2343" # Acceptance Tests
volumes:
- ".:/go/src/github.com/photoprism/photoprism"
- "go-mod:/go/pkg/mod"