Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update prod URLs with the new environment's URLs #1632

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 = "staging-backend.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 = "staging-backend.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 = "staging-backend.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