svsticky / pxl

Manage photo albums on S3 buckets
https://pxl-demo.svsticky.nl
Mozilla Public License 2.0
17 stars 2 forks source link

More info for breaking locks #59

Closed maartenberg closed 4 years ago

maartenberg commented 4 years ago

This PR allows passing the --force flag to the build command to allow users to break the lock. It also downloads the lockfile when an upload is attempted and found.

Example output:

$ pipenv run pxl build
Building site...
Lock exists, aborting.
The state was locked by stef@Uitkijkpop on 2019-09-08 18:41:15.
Pass --force to ignore this.

$ pipenv run pxl build --force
Building site...
Breaking a lock set by stef@Uitkijkpop on 2019-09-08 18:41:15.
Done.

# No lock anymore
$ pipenv run pxl build --force
Building site...
Done.