mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 03:16:55 -08:00
11 lines
271 B
Python
11 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()
|