Fix configuration wizard

This commit is contained in:
Thomas Sileo 2022-08-09 22:29:01 +02:00
parent 9bd3c06054
commit 02be684b8b

View file

@ -129,10 +129,15 @@ def download_twemoji(ctx):
f.write(tf.extractfile(member).read()) # type: ignore f.write(tf.extractfile(member).read()) # type: ignore
@task(download_twemoji, compile_scss, migrate_db) @task(download_twemoji, compile_scss)
def configuration_wizard(ctx): def configuration_wizard(ctx):
# type: (Context) -> None # type: (Context) -> None
run("PYTHONPATH=. python scripts/config_wizard.py", pty=True, echo=True) run("MICROBLOGPUB_CONFIG_FILE=tests.toml alembic upgrade head", echo=True)
run(
"MICROBLOGPUB_CONFIG_FILE=tests.toml PYTHONPATH=. python scripts/config_wizard.py", # noqa: E501
pty=True,
echo=True,
)
@task @task