mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Merge branch 'main' of https://codeberg.org/saint/pyfedi
This commit is contained in:
commit
54653380ec
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,12 @@ def register(app):
|
|||
if os.system('pybabel compile -d app/translations'):
|
||||
raise RuntimeError('compile command failed')
|
||||
|
||||
@app.cli.command("keys")
|
||||
def keys():
|
||||
private_key, public_key = RsaKeys.generate_keypair()
|
||||
print(private_key)
|
||||
print(public_key)
|
||||
|
||||
@app.cli.command("init-db")
|
||||
def init_db():
|
||||
with app.app_context():
|
||||
|
|
Loading…
Add table
Reference in a new issue