mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
12 lines
271 B
Python
12 lines
271 B
Python
|
#!/usr/bin/env python
|
||
|
import os
|
||
|
from app import celery, create_app
|
||
|
|
||
|
|
||
|
app = create_app()
|
||
|
if not app.debug:
|
||
|
os.environ['DATABASE_URL'] = 'postgresql+psycopg2://pyfedi:pyfedi@127.0.0.1/pyfedi'
|
||
|
os.environ['SERVER_NAME'] = 'piefed.ngrok.app'
|
||
|
|
||
|
app.app_context().push()
|