-
5월 28일 - Elastic BeanstalkTIL(미사용) 2020. 5. 28. 22:03
어제 하던 거 이어서..
Elastic Beanstalk
InvalidParameterValueError - No Environment found for EnvironmentName 에러
어제 발생했던 이 오류가 뜬 원인은 내가 배포하려는 환경의 이름이 없다는 의미였다. 꽤 여러 문제가 있었는데
1. eb init을 할 때 --profile 옵션을 추가하지 않았다. aws cli 디폴트 계정이 회사 계정이었다. 그래서 환경을 찾지 못한 것
2. eb init에서 region을 선택하는데 이상한 지역을 선택하고 있었다.
결국 eb cli를 사용해서 배포를 하는 것은 성공했으나 502 bad gateway에러가 발생했고, 혹시 create-react-app typescript라서 별도의 설정을 해야하나 싶었지만 javascript로 만들어진 create-react-app을 배포해도 502 bad gateway 에러가 발생했다...
502 bad gateway 에러
... 2시간 내내 찾아봤는데 진짜 모르겠다... 하....
일단 내일 공부할 거 https://create-react-app.dev/docs/production-build
Create React App · Set up a modern web app by running one command.
`npm run build` creates a `build` directory with a production build of your app. Inside the `build/static` directory will be your JavaScript and CSS files. Each filename inside of `build/static` will contain a unique hash of the file contents. This hash in
create-react-app.dev
뭔가 느낌적인 느낌으로는... cra를 eb에 배포하려면 production 버전으로 배포해야하는 뭔가 설정을 해야하는 거 같은데... 환경변수 PORT, NODE_ENV 같은 거... 혹은 production build 같은 것들이 유력해 보인다..
으으으으... 자괴감들어..
'TIL(미사용)' 카테고리의 다른 글
6월 2일 - 그냥... 잡다한 공부.... (0) 2020.06.02 6월 1일 EC2 시작, SSH 연결 (0) 2020.06.01 5월 27일 - elastic beanstalk, aws cli (0) 2020.05.27 5월 26일 - 웹 페이지 만들기(프론트엔드)였으나 weppack (0) 2020.05.27 5월 23일 - 웹 스택 비교 (0) 2020.05.23