forked from forks/microblog.pub
Fix password reset task
This commit is contained in:
parent
3729500e3e
commit
fd5293a05c
2 changed files with 11 additions and 11 deletions
16
Makefile
16
Makefile
|
@ -12,32 +12,32 @@ config:
|
||||||
|
|
||||||
.PHONY: update
|
.PHONY: update
|
||||||
update:
|
update:
|
||||||
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv update --no-update-deps
|
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv update --no-update-deps
|
||||||
|
|
||||||
.PHONY: prune-old-data
|
.PHONY: prune-old-data
|
||||||
prune-old-data:
|
prune-old-data:
|
||||||
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv prune-old-data
|
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv prune-old-data
|
||||||
|
|
||||||
.PHONY: webfinger
|
.PHONY: webfinger
|
||||||
webfinger:
|
webfinger:
|
||||||
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv webfinger $(account)
|
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv webfinger $(account)
|
||||||
|
|
||||||
.PHONY: move-to
|
.PHONY: move-to
|
||||||
move-to:
|
move-to:
|
||||||
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv move-to $(account)
|
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv move-to $(account)
|
||||||
|
|
||||||
.PHONY: self-destruct
|
.PHONY: self-destruct
|
||||||
self-destruct:
|
self-destruct:
|
||||||
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv self-destruct
|
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv self-destruct
|
||||||
|
|
||||||
.PHONY: reset-password
|
.PHONY: reset-password
|
||||||
reset-password:
|
reset-password:
|
||||||
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv reset-password
|
-docker run --rm -it --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv reset-password
|
||||||
|
|
||||||
.PHONY: check-config
|
.PHONY: check-config
|
||||||
check-config:
|
check-config:
|
||||||
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv check-config
|
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv check-config
|
||||||
|
|
||||||
.PHONY: compile-scss
|
.PHONY: compile-scss
|
||||||
compile-scss:
|
compile-scss:
|
||||||
-docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv compile-scss
|
-docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv compile-scss
|
||||||
|
|
|
@ -333,13 +333,13 @@ make compile-scss
|
||||||
|
|
||||||
### Password reset
|
### Password reset
|
||||||
|
|
||||||
If have lost your password, you can generate a new one using the `password-reset` task.
|
If have lost your password, you can generate a new one using the `reset-password` task.
|
||||||
|
|
||||||
#### Python edition
|
#### Python edition
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# shutdown supervisord
|
# shutdown supervisord
|
||||||
poetry run inv password-reset
|
poetry run inv reset-password
|
||||||
# edit data/profile.toml
|
# edit data/profile.toml
|
||||||
# restart supervisord
|
# restart supervisord
|
||||||
```
|
```
|
||||||
|
@ -348,7 +348,7 @@ poetry run inv password-reset
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose stop
|
docker compose stop
|
||||||
make password-reset
|
make reset-password
|
||||||
# edit data/profile.toml
|
# edit data/profile.toml
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue