Skip to content

Commit

Permalink
fix deployment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
masonchain committed Oct 18, 2023
1 parent 0e7d47f commit cf90c05
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion api/Procfile
Original file line number Diff line number Diff line change
@@ -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
9 changes: 4 additions & 5 deletions api/api/settings/__init__.py
Original file line number Diff line number Diff line change
@@ -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 *
2 changes: 1 addition & 1 deletion api/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions api/indexer/backfill/backfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def backfill_organizations(self):
ORGANIZATION_EVENTS
)

# if __name__ == '__main__':
# backfill = Backfill()
# backfill.backfill_factories()
# backfill.backfill_organizations()
if __name__ == '__main__':
backfill = Backfill()
backfill.backfill_factories()
backfill.backfill_organizations()

0 comments on commit cf90c05

Please sign in to comment.