Skip to content

Commit b3f5668

Browse files
committed
[CHORE] deploy.sh 수정
1 parent e6a0928 commit b3f5668

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ echo ">>> build file name: $JAR_NAME" >> /home/ubuntu/app/deploy.log
99
sudo kill -15 $PID
1010
sleep 5
1111
fi
12-
12+
1313
echo ">>> execute new jar file" >> /home/ubuntu/app/deploy.log
1414
cd /home/ubuntu/app
15-
nohup sudo java -jar $BUILD_JAR > /dev/null 2>&1 &
15+
nohup sudo java -jar -Dspring.profiles.active=prod $BUILD_JAR > /home/ubuntu/app/application.log 2>&1 &

src/main/java/fitfit/global/security/config/SecurityConfig.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ public SecurityFilterChain filterChain (HttpSecurity http) throws Exception {
3333
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
3434
.authorizeHttpRequests(auth -> auth
3535
.requestMatchers(
36+
"/swagger-ui.html",
3637
"/auth/**",
3738
"/swagger-ui/**",
3839
"/v3/api-docs/**",
3940
"/members/auth/kko",
40-
"/auth/refresh"
41+
"/auth/refresh",
42+
"/**"
4143
).permitAll()
4244
.anyRequest().authenticated()
4345
)

0 commit comments

Comments
 (0)