inflearn logo
講義

講義

知識共有

tlsbamtol3467さんの投稿

tlsbamtol3467 tlsbamtol3467

@tlsbamtol3467

レビュー投稿数
2
平均評価
5.0

投稿 10

Q&A

급합니다!! ㅜ_ㅜ....

@ Injectable () export class BoardRepository extends Repository Board > { constructor ( private dataSource : DataSource ) { super (Board , dataSource . createEntityManager ()) ; } } 이렇게 하고 BoardModule에서 providers에 BoardRepository 추가해주면 됩니다!

いいね数
0
コメント数
2
閲覧数
867

Q&A

연결 에러

댓글에 말해주신 방법대로 실행했음에도 해결하지 못했습니다. 저도 도움을 받고 싶습니다.!

いいね数
3
コメント数
9
閲覧数
825

Q&A

이미지 업로드 관련 질문

해결했습니다! NestExpressApplication과 useStaticAssets을 사용하지 않고 있었습니다.

いいね数
0
コメント数
1
閲覧数
489

Q&A

GoRouter 질문

go router 5.0.5 기준 MaterialApp.router(routerConfig:_router) 를 적용하여 해결했습니다! 이 경우에는 routeInformationProvider, routeInformationParser, routerDelegate를 할당할 필요가 없는 것 같습니다.

いいね数
1
コメント数
6
閲覧数
1137

Q&A

GoRouter 질문

context.push()는 동작해서 context.go() 대신에 context.push()를 사용하려고 하는데 프로젝트 진행에 문제가 없을까요? 별개로 궁금한 점이 있는데, context.go()는 context.push()와 달리 화면이 스택처럼 쌓이는 것이 아니라 그냥 말 그대로 이동이라고 보면 될까요? context.push() 가 Navigator.push()와 사실상 동일하고 context.go()가 Navigator.pushAndRemoveUntil()과 같다고 봐도 되는 지 궁금합니다.

いいね数
1
コメント数
6
閲覧数
1137

Q&A

GoRouter 질문

flutter upgrade --force 를 실행하여 flutter 버전을 업그레이드 해주고 go_router 최신 버전인 5.0.5로 실행하여도 동일하게 context.go() 함수만 실행이 되지 않습니다.

いいね数
1
コメント数
6
閲覧数
1137

Q&A

ec2 배포시 cors 문제

해당 에러는 http:// 를 넣어주지 않아서 발생한 문제로 보입니다. 해결하였습니다. client/Dockerfile을 다음과 같이 수정하는 것으로 해결했습니다. 또한 server/Dockerfile에서도 CMD["npm","run","start:prd"]로 수정해야 하는 것을 확인했습니다. 해결하지 못 했습니다.

いいね数
0
コメント数
1
閲覧数
1233

Q&A

ec2 npm install sharp error

https://sharp.pixelplumbing.com/install#chinese-mirror 해당 링크를 통해 에러를 해결했습니다! client/Dockerfile을 FROM node:alpine ENV PORT 3000 WORKDIR /usr/src/app COPY package*.json ./ RUN npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp" RUN npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-libvips" RUN npm install COPY ./ ./ ENV NODE_ENV production RUN npm run build:prod CMD ["npm","run","start:prod"] 로 수정하였습니다

いいね数
0
コメント数
1
閲覧数
891

Q&A

ec2 배포시 500 에러가 해결되지 않습니다

client/Dockerfile server/Dockerfile docker-compose.yml 파일 모두 강의자료와 동일하게 한 후 sudo docker-compose up 을 하게 되면 다음과 같은 에러가 발생합니다. 저장공간 부족 오류로 보여 레포지토리를 삭제하고 다시 git clone하여 프로젝트를 생성하여 해결했습니다. sudo docker-compose up을 실행할 경우 reddit-client is up-to-date reddit-postgress is up-to-date Starting reddit-server ... done Attaching to reddit-client, reddit-postgress, reddit-server reddit-client | reddit-client | > client@0.1.0 start:prod reddit-client | > env-cmd -f .env.production next start reddit-client | reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000 reddit-client | info - Loaded env from /usr/src/app/.env.production reddit-client | npm ERR! path /usr/src/app reddit-client | npm ERR! command failed reddit-client | npm ERR! signal SIGTERM reddit-client | npm ERR! command sh /tmp/startprod-76075211.sh reddit-client | reddit-client | npm ERR! A complete log of this run can be found in: reddit-client | npm ERR! /root/.npm/_logs/2022-09-25T06_44_41_787Z-debug-0.log reddit-client | reddit-client | > client@0.1.0 start:prod reddit-client | > env-cmd -f .env.production next start reddit-client | reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000 reddit-client | info - Loaded env from /usr/src/app/.env.production reddit-client | npm ERR! path /usr/src/app reddit-client | npm ERR! command failed reddit-client | npm ERR! signal SIGTERM reddit-client | npm ERR! command sh /tmp/startprod-eb67da0d.sh reddit-client | reddit-client | npm ERR! A complete log of this run can be found in: reddit-client | npm ERR! /root/.npm/_logs/2022-09-25T07_00_11_720Z-debug-0.log reddit-client | reddit-client | > client@0.1.0 start:prod reddit-client | > env-cmd -f .env.production next start reddit-client | reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000 reddit-client | info - Loaded env from /usr/src/app/.env.production reddit-client | npm ERR! path /usr/src/app reddit-client | npm ERR! command failed reddit-client | npm ERR! signal SIGTERM reddit-client | npm ERR! command sh /tmp/startprod-5c6ae273.sh reddit-client | reddit-client | npm ERR! A complete log of this run can be found in: reddit-client | npm ERR! /root/.npm/_logs/2022-09-25T07_22_53_603Z-debug-0.log reddit-client | reddit-client | > client@0.1.0 start:prod reddit-client | > env-cmd -f .env.production next start reddit-client | reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000 reddit-client | info - Loaded env from /usr/src/app/.env.production reddit-client | npm ERR! path /usr/src/app reddit-client | npm ERR! command failed reddit-client | npm ERR! signal SIGTERM reddit-client | npm ERR! command sh /tmp/startprod-b4542fa5.sh reddit-client | reddit-client | npm ERR! A complete log of this run can be found in: reddit-client | npm ERR! /root/.npm/_logs/2022-09-25T07_41_03_766Z-debug-0.log reddit-client | reddit-client | > client@0.1.0 start:prod reddit-client | > env-cmd -f .env.production next start reddit-client | reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000 reddit-client | info - Loaded env from /usr/src/app/.env.production reddit-client | npm ERR! path /usr/src/app reddit-client | npm ERR! command failed reddit-client | npm ERR! signal SIGTERM reddit-client | npm ERR! command sh /tmp/startprod-abd308d1.sh reddit-client | reddit-client | npm ERR! A complete log of this run can be found in: reddit-client | npm ERR! /root/.npm/_logs/2022-09-25T07_41_11_506Z-debug-0.log reddit-client | reddit-client | > client@0.1.0 start:prod reddit-client | > env-cmd -f .env.production next start reddit-client | reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000 reddit-client | info - Loaded env from /usr/src/app/.env.production client에서 다음과 같은 에러메시지가 발생합니다. 이외에 server와 postgres는 올바르게 실행됩니다. pm2 restart all을 실행하여 reddit-server와 reddit-client를 모두 실행하였을 때에 홈화면은 올바르게 나타나지만 이번에는 아래와 같은 에러가 발생합니다. 저장

いいね数
0
コメント数
2
閲覧数
873

Q&A

ec2 배포시 500 에러가 해결되지 않습니다

client/Dockerfile 에서 RUN npm run build 부분을 RUN npm run build:prod 로 변경하여 실행했더니 본 글의 5번째 사진과 같은 오류는 해결된 듯 합니다. 그러나 해당 상황에서 계속 업데이트가 되지 않고 있고 ec2 주소로는 접근이 안되고 있습니다.

いいね数
0
コメント数
2
閲覧数
873