Skip to content

Commit

Permalink
Merge pull request #1632 from ResearchHub/update-prod-backend-urls
Browse files Browse the repository at this point in the history
Update prod URLs with the new environment's URLs
  • Loading branch information
gzurowski committed Jun 17, 2024
2 parents facf669 + 3dc0b65 commit cd34843
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mailing_list/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def send_hub_digest(frequency):
http_host = "backend.staging.researchhub.com"
protocol = "https"
elif PRODUCTION:
http_host = "backend.researchhub.com"
http_host = "backend.prod.researchhub.com"
protocol = "https"
else:
http_host = "localhost:8000"
Expand Down
6 changes: 4 additions & 2 deletions src/researchhub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,11 @@ def silky_capture(request):
GOOGLE_REDIRECT_URL = "http://localhost:8000/auth/google/login/callback/"
GOOGLE_YOLO_REDIRECT_URL = "http://localhost:8000/auth/google/yolo/callback/"
if PRODUCTION:
GOOGLE_REDIRECT_URL = "https://backend.researchhub.com/auth/google/login/callback/"
GOOGLE_REDIRECT_URL = (
"https://backend.prod.researchhub.com/auth/google/login/callback/"
)
GOOGLE_YOLO_REDIRECT_URL = (
"https://backend.researchhub.com/auth/google/yolo/callback/"
"https://backend.prod.researchhub.com/auth/google/yolo/callback/"
)
if STAGING:
GOOGLE_REDIRECT_URL = (
Expand Down
2 changes: 1 addition & 1 deletion src/researchhub_document/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def preload_trending_documents(
http_host = "backend.staging.researchhub.com"
protocol = "https"
elif PRODUCTION:
http_host = "backend.researchhub.com"
http_host = "backend.prod.researchhub.com"
protocol = "https"
else:
http_host = "localhost:8000"
Expand Down
2 changes: 1 addition & 1 deletion src/user/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def preload_latest_activity(hub_ids, ordering):
http_host = "backend.staging.researchhub.com"
protocol = "https"
elif PRODUCTION:
http_host = "backend.researchhub.com"
http_host = "backend.prod.researchhub.com"
protocol = "https"
else:
http_host = "localhost:8000"
Expand Down

0 comments on commit cd34843

Please sign in to comment.