Skip to content

Commit

Permalink
Merge branch 'develop-backend' of https://github.com/woowacourse-team…
Browse files Browse the repository at this point in the history
…s/2024-mouda into develop-backend
  • Loading branch information
Mingyum-Kim committed Oct 23, 2024
2 parents dc1d8cf + 222247b commit 945a90e
Show file tree
Hide file tree
Showing 47 changed files with 301 additions and 1,169 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/be-rolling-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Rolling Deployment

on:
push:
branches:
- chore/#682

jobs:
deploy-prod1:
name: Deploy to Prod1 Instance
runs-on: runner-prod1

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run Prod1 instance deploy script
run: |
cd ~/deploy && ./deploy.sh
check-prod1:
name: Check Prod1 Instance
runs-on: runner-prod1
needs: deploy-prod1

steps:
- name: Wait for Prod1 instance to be ready
run: sleep 30

- name: Health check for Prod1 instance
run: |
RESPONSE=$(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:8080/health)
if [ $RESPONSE -ne 200 ]; then
echo "Prod1 instance deployment failed."
exit 1
fi
echo "Prod1 instance is healthy."
deploy-prod2:
name: Deploy to Prod2 Instance
runs-on: runner-prod2
needs: check-prod1

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run Prod2 instance deploy script
run: |
cd ~/deploy && ./deploy.sh
check-prod2:
name: Check Prod2 Instance
runs-on: runner-prod2
needs: deploy-prod2

steps:
- name: Wait for Prod2 instance to be ready
run: sleep 30

- name: Health check for Prod2 instance
run: |
RESPONSE=$(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:8080/health)
if [ $RESPONSE -ne 200 ]; then
echo "Prod2 instance deployment failed."
exit 1
fi
echo "Prod2 instance is healthy."
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import mouda.backend.darakbang.domain.Darakbang;
import mouda.backend.darakbang.implement.DarakbangFinder;
import mouda.backend.moim.domain.Moim;
import mouda.backend.moim.implement.finder.ChatRecipientFinder;
import mouda.backend.moim.implement.finder.MoimFinder;
import mouda.backend.notification.domain.NotificationEvent;
import mouda.backend.notification.domain.NotificationType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package mouda.backend.moim.implement.finder;
package mouda.backend.chat.implement.sender;

import java.util.List;
import java.util.stream.Stream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public LocalContainerEntityManagerFactoryBean entityManagerFactory(

return builder.dataSource(dataSource)
.properties(properties)
.packages("mouda.backend.*.domain")
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -18,6 +19,7 @@
@Entity
@Getter
@NoArgsConstructor
@Table(name = "darakbang")
public class Darakbang {

@Id
Expand Down
2 changes: 2 additions & 0 deletions backend/src/main/java/mouda/backend/member/domain/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -20,6 +21,7 @@
@Entity
@Getter
@NoArgsConstructor
@Table(name = "member")
public class Member {

@Id
Expand Down
114 changes: 0 additions & 114 deletions backend/src/main/java/mouda/backend/moim/business/ChatService.java

This file was deleted.

61 changes: 0 additions & 61 deletions backend/src/main/java/mouda/backend/moim/domain/Chat.java

This file was deleted.

50 changes: 0 additions & 50 deletions backend/src/main/java/mouda/backend/moim/domain/ChatRoom.java

This file was deleted.

18 changes: 0 additions & 18 deletions backend/src/main/java/mouda/backend/moim/domain/ChatRooms.java

This file was deleted.

6 changes: 0 additions & 6 deletions backend/src/main/java/mouda/backend/moim/domain/ChatType.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit 945a90e

Please sign in to comment.