
main branch Pushapplication.properties ํ์ผ ์์ฑappspec.yml ํ์ผ ์คํdeploy.sh ํ์ผ ์คํdocker-compose.blue.yml ๋๋ docker-compose.green.yml ์คํ๊ธฐ์กด : ๋ก๋๋ฐธ๋ฐ์๊ฐ Https๋ก ๋ฆฌ๋ค์ด๋ ํธ ํ ๋ค์ ์น ์๋ฒ(Nginx)์๊ฒ Https๋ฅผ ํด์ ํด์ Http๋ก ๋๊ธด๋ค
์์ ํ : ๋ก๋๋ฐธ๋ฐ์์์๋ ์ํ ์ฝ๋ 301๋ก๋ง ๋ฆฌ๋ค์ด๋ ํธ๋์ด Get๋ฉ์๋๋ก ์ฌ์์ฒญ์ด ๋ค์ด์ค๋ฉฐ ์ด๋ 415 Method Not Allowed ์๋ฌ๋ฅผ ๋ฐ์์ํจ๋ค.
-> ๋ก๋๋ฐธ๋ฐ์๋ Http ๊ทธ๋๋ก ํต๊ณผํ ํ Nginx์์ 308 Https๋ก ๋ฆฌ๋ค์ด๋ ํธํ๋ค.
์น ์๋ฒ์ Http๋ก ๋๊ธฐ๋ ์ด์
- ๋ก๋ ๋ฐธ๋ฐ์์ ํด๋ผ์ด์ธํธ์์ ํต์ ์์ ๋ณด์์ ์ ์งํ๋ฉด์๋ ๋ด๋ถ ์น ์๋ฒ์์ ํต์ ์์๋ ์ํธํ ๋น์ฉ์ ์ ๊ฐํ ์ ์์ด ํจ์จ์ ์ด๋ค.
keepalive, keepalive_timeout ๊ณ ๋ คํ๊ธฐsyntax error near unexpected token '('
contextLoads() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:98
Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1804
Caused by: javax.persistence.PersistenceException at AbstractEntityManagerFactoryBean.java:421
Caused by: org.hibernate.exception.JDBCConnectionException at SQLStateConversionDelegate.java:112
Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException at SQLError.java:174
Caused by: com.mysql.cj.exceptions.CJCommunicationsException at NativeConstructorAccessorImpl.java:-2
Caused by: java.net.ConnectException at PlainSocketImpl.java:-2
./gradlew build -x test ์ ๊ฐ์ด ํ
์คํธ ๋ฌด์ ์ปค๋ฉ๋ ์ถ๊ฐAn error occurred (DeploymentLimitExceededException) when calling the CreateDeployment operation: The Deployment Group '~~~' already has an active Deployment 'd-6USSQTOMN'
appspec.yml ํ์ผ์ ๋ฎ์ด์ฐ๊ธฐ ์ค์ ์ถ๊ฐfile_exists_behavior: OVERWRITE502 BadGateway
cond.f/default.conf ์ include ํ๊ณ location ๋ธ๋ก์ ํ๋ ๋ ์ ์ธํ๋ฉด์ proxy_pass ๊ฐ ๋น์ ์์ ์ผ๋ก ์๋ํด ๋ฐ์ํ๋ค.cond.f/default.conf๊ณผ nginx.conf ํ์ผ ํตํฉ415 Method Not Allowed
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PATCH, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization';
add_header 'Access-Control-Max-Age' 86400;
}
add_header 'Access-Control-Allow-Origin' '*' always;
}Post Request๊ฐ Get Request๋ก ๋ฐ๋์ด์ ๋๊ฐ๋ ๋ฌธ์