Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
rabbitmq:
condition: service_healthy
food-ai:
condition: service_started
condition: service_healthy
socket:
condition: service_started
ports:
Expand Down Expand Up @@ -81,7 +81,7 @@ services:
container_name: food-ai
networks: [ my-network ]
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8000/healthz || exit 1"]
test: ["CMD", "python", "-c", "import urllib.request,sys; r=urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=5); sys.exit(0 if r.getcode()==200 else 1)"]
interval: 15s
timeout: 5s
retries: 12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class LoginSuccessHandler implements AuthenticationSuccessHandler {
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {
CustomOauth2User principal = (CustomOauth2User) authentication.getPrincipal();
if (principal.isSignupRequired()) {
response.sendRedirect("https://bab-muk-dang-client.vercel.app/");
response.sendRedirect("https://bab-muk-dang-client.vercel.app/onboarding");
return;
}

Expand Down