tlsbamtol3467
@tlsbamtol3467
Reviews Written
2
Average Rating
5.0
Posts
Q&A
๊ธํฉ๋๋ค!! ใ _ใ ....
@Injectable()export class BoardRepository extends RepositoryBoard> {constructor(private dataSource: DataSource) {super(Board, dataSource.createEntityManager());}}์ด๋ ๊ฒ ํ๊ณ BoardModule์์ providers์ BoardRepository ์ถ๊ฐํด์ฃผ๋ฉด ๋ฉ๋๋ค!
- 0
- 2
- 826
Q&A
์ฐ๊ฒฐ ์๋ฌ
(์ฌ์ง)(์ฌ์ง)(์ฌ์ง)(์ฌ์ง)(์ฌ์ง)๋๊ธ์ ๋งํด์ฃผ์ ๋ฐฉ๋ฒ๋๋ก ์คํํ์์๋ ํด๊ฒฐํ์ง ๋ชปํ์ต๋๋ค. ์ ๋ ๋์์ ๋ฐ๊ณ ์ถ์ต๋๋ค.!
- 3
- 9
- 739
Q&A
์ด๋ฏธ์ง ์ ๋ก๋ ๊ด๋ จ ์ง๋ฌธ
ํด๊ฒฐํ์ต๋๋ค!NestExpressApplication๊ณผ useStaticAssets์ ์ฌ์ฉํ์ง ์๊ณ ์์์ต๋๋ค.
- 0
- 1
- 466
Q&A
GoRouter ์ง๋ฌธ
go router 5.0.5 ๊ธฐ์ค MaterialApp.router(routerConfig:_router) ๋ฅผ ์ ์ฉํ์ฌ ํด๊ฒฐํ์ต๋๋ค! ์ด ๊ฒฝ์ฐ์๋ routeInformationProvider, routeInformationParser, routerDelegate๋ฅผ ํ ๋นํ ํ์๊ฐ ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
- 1
- 6
- 1.1K
Q&A
GoRouter ์ง๋ฌธ
context.push()๋ ๋์ํด์ context.go() ๋์ ์ context.push()๋ฅผ ์ฌ์ฉํ๋ ค๊ณ ํ๋๋ฐ ํ๋ก์ ํธ ์งํ์ ๋ฌธ์ ๊ฐ ์์๊น์?๋ณ๊ฐ๋ก ๊ถ๊ธํ ์ ์ด ์๋๋ฐ, context.go()๋ context.push()์ ๋ฌ๋ฆฌ ํ๋ฉด์ด ์คํ์ฒ๋ผ ์์ด๋ ๊ฒ์ด ์๋๋ผ ๊ทธ๋ฅ ๋ง ๊ทธ๋๋ก ์ด๋์ด๋ผ๊ณ ๋ณด๋ฉด ๋ ๊น์? context.push() ๊ฐ Navigator.push()์ ์ฌ์ค์ ๋์ผํ๊ณ context.go()๊ฐ Navigator.pushAndRemoveUntil()๊ณผ ๊ฐ๋ค๊ณ ๋ด๋ ๋๋ ์ง ๊ถ๊ธํฉ๋๋ค.
- 1
- 6
- 1.1K
Q&A
GoRouter ์ง๋ฌธ
flutter upgrade --force ๋ฅผ ์คํํ์ฌ flutter ๋ฒ์ ์ ์ ๊ทธ๋ ์ด๋ ํด์ฃผ๊ณ go_router ์ต์ ๋ฒ์ ์ธ 5.0.5๋ก ์คํํ์ฌ๋ ๋์ผํ๊ฒ context.go() ํจ์๋ง ์คํ์ด ๋์ง ์์ต๋๋ค.
- 1
- 6
- 1.1K
Q&A
ec2 ๋ฐฐํฌ์ cors ๋ฌธ์
ํด๋น ์๋ฌ๋ http:// ๋ฅผ ๋ฃ์ด์ฃผ์ง ์์์ ๋ฐ์ํ ๋ฌธ์ ๋ก ๋ณด์ ๋๋ค. ํด๊ฒฐํ์์ต๋๋ค.client/Dockerfile์ ๋ค์๊ณผ ๊ฐ์ด ์์ ํ๋ ๊ฒ์ผ๋ก ํด๊ฒฐํ์ต๋๋ค. ๋ํ server/Dockerfile์์๋ CMD["npm","run","start:prd"]๋ก ์์ ํด์ผ ํ๋ ๊ฒ์ ํ์ธํ์ต๋๋ค.ํด๊ฒฐํ์ง ๋ชป ํ์ต๋๋ค.
- 0
- 1
- 1.2K
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
- 856
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-datereddit-postgress is up-to-dateStarting reddit-server ... doneAttaching to reddit-client, reddit-postgress, reddit-serverreddit-client |reddit-client | > client@0.1.0 start:prodreddit-client | > env-cmd -f .env.production next startreddit-client |reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000reddit-client | info - Loaded env from /usr/src/app/.env.productionreddit-client | npm ERR! path /usr/src/appreddit-client | npm ERR! command failedreddit-client | npm ERR! signal SIGTERMreddit-client | npm ERR! command sh /tmp/startprod-76075211.shreddit-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.logreddit-client |reddit-client | > client@0.1.0 start:prodreddit-client | > env-cmd -f .env.production next startreddit-client |reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000reddit-client | info - Loaded env from /usr/src/app/.env.productionreddit-client | npm ERR! path /usr/src/appreddit-client | npm ERR! command failedreddit-client | npm ERR! signal SIGTERMreddit-client | npm ERR! command sh /tmp/startprod-eb67da0d.shreddit-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.logreddit-client |reddit-client | > client@0.1.0 start:prodreddit-client | > env-cmd -f .env.production next startreddit-client |reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000reddit-client | info - Loaded env from /usr/src/app/.env.productionreddit-client | npm ERR! path /usr/src/appreddit-client | npm ERR! command failedreddit-client | npm ERR! signal SIGTERMreddit-client | npm ERR! command sh /tmp/startprod-5c6ae273.shreddit-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.logreddit-client |reddit-client | > client@0.1.0 start:prodreddit-client | > env-cmd -f .env.production next startreddit-client |reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000reddit-client | info - Loaded env from /usr/src/app/.env.productionreddit-client | npm ERR! path /usr/src/appreddit-client | npm ERR! command failedreddit-client | npm ERR! signal SIGTERMreddit-client | npm ERR! command sh /tmp/startprod-b4542fa5.shreddit-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.logreddit-client |reddit-client | > client@0.1.0 start:prodreddit-client | > env-cmd -f .env.production next startreddit-client |reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000reddit-client | info - Loaded env from /usr/src/app/.env.productionreddit-client | npm ERR! path /usr/src/appreddit-client | npm ERR! command failedreddit-client | npm ERR! signal SIGTERMreddit-client | npm ERR! command sh /tmp/startprod-abd308d1.shreddit-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.logreddit-client |reddit-client | > client@0.1.0 start:prodreddit-client | > env-cmd -f .env.production next startreddit-client |reddit-client | ready - started server on 0.0.0.0:3000, url: http://localhost:3000reddit-client | info - Loaded env from /usr/src/app/.env.productionclient์์ ๋ค์๊ณผ ๊ฐ์ ์๋ฌ๋ฉ์์ง๊ฐ ๋ฐ์ํฉ๋๋ค. ์ด์ธ์ server์ postgres๋ ์ฌ๋ฐ๋ฅด๊ฒ ์คํ๋ฉ๋๋ค. pm2 restart all์ ์คํํ์ฌ reddit-server์ reddit-client๋ฅผ ๋ชจ๋ ์คํํ์์ ๋์ ํํ๋ฉด์ ์ฌ๋ฐ๋ฅด๊ฒ ๋ํ๋์ง๋ง ์ด๋ฒ์๋ ์๋์ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค.(์ฌ์ง)์ ์ฅ
- 0
- 2
- 838
Q&A
ec2 ๋ฐฐํฌ์ 500 ์๋ฌ๊ฐ ํด๊ฒฐ๋์ง ์์ต๋๋ค
(์ฌ์ง)client/Dockerfile ์์ RUN npm run build ๋ถ๋ถ์ RUN npm run build:prod ๋ก ๋ณ๊ฒฝํ์ฌ ์คํํ๋๋ ๋ณธ ๊ธ์ 5๋ฒ์งธ ์ฌ์ง๊ณผ ๊ฐ์ ์ค๋ฅ๋ ํด๊ฒฐ๋ ๋ฏ ํฉ๋๋ค. ๊ทธ๋ฌ๋ ํด๋น ์ํฉ์์ ๊ณ์ ์ ๋ฐ์ดํธ๊ฐ ๋์ง ์๊ณ ์๊ณ ec2 ์ฃผ์๋ก๋ ์ ๊ทผ์ด ์๋๊ณ ์์ต๋๋ค.
- 0
- 2
- 838




