Skip to content

Commit

Permalink
[CI] update code-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gol2580 committed Jan 20, 2024
1 parent 470fe28 commit e2e3768
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ REPOSITORY=/home/ec2-user/app
cd $REPOSITORY

APP_NAME=kimgreen
#JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep '.jar' | head -n 1)
JAR_NAME=/home/ec2-user/app/build/libs/backend-0.0.1-SNAPSHOT.jar
JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep '.jar' | head -n 1)
#JAR_NAME=/home/ec2-user/app/build/libs/backend-0.0.1-SNAPSHOT.jar
JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME

CURRENT_PID=$(pgrep -f $APP_NAME)
CURRENT_PID=$(pgrep -f java)

if [ -z $CURRENT_PID ] #2
then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import com.kimgreen.backend.domain.notification.entity.FCMToken;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface FCMTokenRepository extends JpaRepository<FCMToken,Long> {
public FCMToken findByReceiverId(String email);
public boolean existsByReceiverId(String email);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface NotificationRepository extends JpaRepository<Notification,Long> {
Page<Notification> findAllByMember(Member member, Pageable pageable);
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class FCMService {
@Value("${fcm.key.scope}")
private String fireBaseScope;

@Value(("{fcm.url}"))
@Value(("${fcm.url}"))
private String FCM_URL;

private final FCMTokenRepository fcmTokenRepository;
Expand Down

0 comments on commit e2e3768

Please sign in to comment.