fix deployment issues

This commit is contained in:
Mason 2023-10-18 12:02:42 -05:00
parent 0e7d47f100
commit cf90c05c3e
4 changed files with 10 additions and 11 deletions

View File

@ -1,2 +1,2 @@
release: python manage.py migrate
web: gunicorn api.wsgi --log-level=info --log-file=-
web: gunicorn api.wsgi --log-level=info --log-file=- --bind 0.0.0.0:8080

View File

@ -1,6 +1,5 @@
from .base import *
if DEBUG:
from .local import *
else:
from .production import *
# if DEBUG:
# from .local import *
# else:
from .production import *

View File

@ -15,7 +15,7 @@ kill_timeout = "5s"
release_command = "python manage.py migrate"
[processes]
app = "gunicorn api.wsgi --log-level=info --log-file=-"
app = "gunicorn api.wsgi --log-level=info --log-file=- --bind 0.0.0.0:8080"
[[services]]
protocol = "tcp"

View File

@ -65,7 +65,7 @@ class Backfill:
ORGANIZATION_EVENTS
)
# if __name__ == '__main__':
# backfill = Backfill()
# backfill.backfill_factories()
# backfill.backfill_organizations()
if __name__ == '__main__':
backfill = Backfill()
backfill.backfill_factories()
backfill.backfill_organizations()