From cf90c05c3eddbf3375e27a4f5fa9d1e8616f5d36 Mon Sep 17 00:00:00 2001 From: Mason <33527785+masonchain@users.noreply.github.com> Date: Wed, 18 Oct 2023 12:02:42 -0500 Subject: [PATCH] fix deployment issues --- api/Procfile | 2 +- api/api/settings/__init__.py | 9 ++++----- api/fly.toml | 2 +- api/indexer/backfill/backfill.py | 8 ++++---- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/api/Procfile b/api/Procfile index ef643c0..fa932bb 100644 --- a/api/Procfile +++ b/api/Procfile @@ -1,2 +1,2 @@ release: python manage.py migrate -web: gunicorn api.wsgi --log-level=info --log-file=- \ No newline at end of file +web: gunicorn api.wsgi --log-level=info --log-file=- --bind 0.0.0.0:8080 \ No newline at end of file diff --git a/api/api/settings/__init__.py b/api/api/settings/__init__.py index 7e7cd66..1d3ad47 100644 --- a/api/api/settings/__init__.py +++ b/api/api/settings/__init__.py @@ -1,6 +1,5 @@ from .base import * - -if DEBUG: - from .local import * -else: - from .production import * \ No newline at end of file +# if DEBUG: +# from .local import * +# else: +from .production import * \ No newline at end of file diff --git a/api/fly.toml b/api/fly.toml index 8b13ae3..28fd9cc 100644 --- a/api/fly.toml +++ b/api/fly.toml @@ -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" diff --git a/api/indexer/backfill/backfill.py b/api/indexer/backfill/backfill.py index a8bfe0c..883eee5 100644 --- a/api/indexer/backfill/backfill.py +++ b/api/indexer/backfill/backfill.py @@ -65,7 +65,7 @@ class Backfill: ORGANIZATION_EVENTS ) -# if __name__ == '__main__': -# backfill = Backfill() -# backfill.backfill_factories() -# backfill.backfill_organizations() \ No newline at end of file +if __name__ == '__main__': + backfill = Backfill() + backfill.backfill_factories() + backfill.backfill_organizations() \ No newline at end of file