Skip to content

Commit

Permalink
Improvements to project host stability.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Jun 24, 2024
1 parent ad297aa commit 8da4629
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions project_id/app/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class CommonConfig(AppConfig):
verbose_name = "App"
default_auto_field = "django.db.models.BigAutoField"

PROJECT_HOST = settings.PROJECT_HOST

def ready(self):
if settings.USE_NGROK and os.environ.get("NGROK_AUTHTOKEN"):
# pyngrok will only be installed, and should only ever be initialized, in a dev environment
Expand All @@ -30,7 +28,6 @@ def ready(self):
print(f"ngrok tunnel \"{public_url}\" -> \"http://127.0.0.1:{port}\"")

# Update any base URLs or webhooks to use the public ngrok URL
self.PROJECT_HOST = public_url
CommonConfig.init_webhooks(public_url)

@staticmethod
Expand Down

0 comments on commit 8da4629

Please sign in to comment.