๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์ „์ฒด ๊ธ€17

localhost ์™€ 127.0.0.1 ์˜ ์ฐจ์ด์  ์นด์นด์˜ค ์†Œ์…œ ๋กœ๊ทธ์ธํ•  ๋•Œredirect uri๊ฐ€ localhost ์ผ ๋•Œ์™€ 127.0.0.1 ์ผ ๋•Œ ๋‹ค๋ฅด๊ฒŒ ์ ์šฉ๋˜๋Š” ๊ฒƒ์„ ์•Œ๊ฒŒ๋˜์—ˆ๋‹ค.๋‘˜์ด ๊ฐ™์€ ๋“ฏ ๋‹ค๋ฅธ๋‹ค๊ณ  ์ถ”์ƒ์ ์œผ๋กœ ์•Œ๊ณ  ์žˆ์—ˆ๋Š”๋ฐ์™œ ๋‘˜์ด ๋‹ค๋ฅธ์ง€ ๋” ์ •ํ™•ํ•˜๊ฒŒ ์•Œ๊ธฐ ์œ„ํ•ด ์ด ๊ธ€์„ ์“ด๋‹ค. ๋จผ์ € ๊ฒฐ๋ก ๋ถ€ํ„ฐ ๋งํ•˜์ž๋ฉด127.0.0.1: ๋ฃจํ”„๋ฐฑ ์ฃผ์†Œ(IP ์ฃผ์†Œ)localhost: ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ (์ปดํ“จํ„ฐ ์ž์ฒด๋ฅผ ๊ฐ€๋ฆฌํ‚ค๋Š” ์ด๋ฆ„)์ด๋‹ค. ์ž ์ด์ œ ๊ฐ๊ฐ์ด ๋ฌด์—‡์ธ์ง€ ์•Œ์•„๋ณด์ž ๋ฃจํ”„๋ฐฑ(Loopback) ์ฃผ์†Œ๋ž€? ๋„คํŠธ์›Œํฌ ์ƒ์—์„œ ์ž์‹ ์„ ๋‚˜ํƒ€๋‚ด๋Š” ๊ฐ€์ƒ์˜ IP ์ฃผ์†Œ ์ด๋‹ค.์ฆ‰, ํ˜„์žฌ ์กฐ์ž‘ ์ค‘์ธ ์ปดํ“จํ„ฐ๋ฅผ ๋„คํŠธ์›Œํฌ ์—ฐ๊ฒฐ ๋Œ€์ƒ์œผ๋กœ ์ธ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ์„ค์ •๋œ ๊ฐ€์ƒ์˜ IP ์ฃผ์†Œ์ด๊ณ ์ด ์ฃผ์†Œ๋ฅผ ํ†ตํ•ด ์™ธ๋ถ€ ๋„คํŠธ์›Œํฌ์™€์˜ ์—ฐ๊ฒฐ์ด ์—†๊ณ  ๋ฌผ๋ฆฌ์ ์œผ๋กœ ์ด๋”๋„ท ์žฅ์น˜๊ฐ€ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ์ง€ ์•Š์•„๋„ํ˜„์žฌ ์‚ฌ์šฉ ์ค‘์ธ ์ž์‹ ์˜ ์ปดํ“จํ„ฐ์™€ ํ†ต.. 2024. 11. 7.
[์•ฑ์„ ๋งŒ๋“ค๋ฉด์„œ ์•Œ๊ฒŒ๋œ ์ ] ๋ฌธ์ž ๋ฏธ๋ฆฌ๋ณด๊ธฐ ์ด๋ฒˆ์— (์›น ํŒจํ‚ค์ง•) ์•ฑ์„ ๋งŒ๋“ค๋ฉด์„œ ์ƒˆ๋กœ์šด ์‚ฌ์‹ค์„ ์•Œ๊ฒŒ๋˜์—ˆ๋‹ค. ์ผ๋ฐ˜์ ์œผ๋กœ ์ธ์ฆ์„ ์œ„ํ•œ ์ธ์ฆ๋ฒˆํ˜ธ๊ฐ€ ํฌํ•จ๋œ ๋ฌธ์ž๋ฅผ ๋ฐ›์•˜์„ ๋•Œ๋ฒˆํ˜ธ๊ฐ€ ์žˆ์œผ๋ฉด ์ž๋™์œผ๋กœ ์ธ์‹ํ•ด์„œ ํ‚ค๋ณด๋“œ ์œ„์— ๋ณด์—ฌ์ฃผ๊ฒŒ ๋˜๊ณ ์‚ฌ์šฉ์ž๋Š” ๋ฉ”์‹œ์ง€ํ•จ์— ๋“ค์–ด๊ฐˆ ํ•„์š” ์—†์ด, ๊ณง๋ฐ”๋กœ ์ธ์ฆ๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋œ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ด๋ฒˆ ํ”„๋กœ์ ํŠธ๋ฅผ ๊ฐœ๋ฐœํ•˜๋ฉด์„œ ๊ทธ๋ ‡์ง€ ์•Š์€ ์ƒํ™ฉ์„ ๋งž๋‹ฅ๋œจ๋ฆฌ๊ฒŒ ๋˜์—ˆ๋‹ค. ๊ฒฐ๋ก ์„ ๋จผ์ € ๋งํ•˜์ž๋ฉด๋ฌธ์ž์— ํ•˜์ดํผ๋งํฌ๊ฐ€ ๊ฑธ๋ฆฌ๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ดํ‚ค๋ณด๋“œ์—์„œ ๋ฒˆํ˜ธ๋ฅผ ์ž๋™์œผ๋กœ ์ธ์‹ํ•  ์ˆ˜ ์—†๊ฒŒ ๋œ๋‹ค. ์ด๊ฒƒ์€ ๋ฌธ์ž๋ฅผ ๋ณด๋‚ด์ฃผ๋Š” ์„œ๋“œํŒŒํ‹ฐ(ex. coolsms)์˜ ๊ณต์‹๋ฌธ์„œ์—๋„ ๋ณด์—ฌ์ง€์ง€ ์•Š๋Š” ๋ถ€๋ถ„์ด๋ผ์šฐ๋ฆฌ ํŒ€์—์„œ ๊ฐ€์„ค์„ ์„ธ์šฐ๊ณ  ํ•˜๋‚˜์”ฉ ํ…Œ์ŠคํŠธํ•ด๋ด์•ผ ํ–ˆ์—ˆ๋‹ค. "์ค„๋ฐ”๊ฟˆ์ด ์ด๋ฃจ์–ด์ ธ์„œ ๊ทธ๋ ‡๋‹ค.""์ธ์ฆ๋ฒˆํ˜ธ ์•ž๋’ค๋กœ ๋ฌธ๊ตฌ๊ฐ€ ์žˆ์–ด์„œ ๊ทธ๋ ‡๋‹ค." ๋ผ๋Š” ์˜๊ฒฌ์ด ์žˆ์–ด์„œ ์•„๋ž˜์™€ ๊ฐ™์ด 4๊ฐ€์ง€ ์ผ€์ด์Šค ๋ฅผ ๊ฐ๊ฐ.. 2024. 10. 29.
[auth] django์˜ permission DRF์˜ Permission System์˜ ์ข…๋ฅ˜์ฐธ๊ณ  : https://www.django-rest-framework.org/api-guide/permissions/#api-referenceAllowAny (๋””ํดํŠธ ์ „์—ญ ์„ค์ •)์ธ์ฆ ์—ฌ๋ถ€์— ์ƒ๊ด€์—†์ด ๋ชจ๋“  ์š”์ฒญ์— ๋Œ€ํ•ด ๋ทฐ ํ˜ธ์ถœ ํ—ˆ์šฉ๊ณต๊ฐœ API์™€ ๊ฐ™์€ ๊ฒฝ์šฐ์— ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.from rest_framework.views import APIViewfrom rest_framework.response import Responsefrom rest_framework.permissions import AllowAnyclass PublicAPIView(APIView): permission_classes = [AllowAny] def get(self, request): .. 2024. 10. 8.
[Python/ERROR] Circular import (Runtime๊ณผ Import Time์˜ ์ฐจ์ด์ ) ์—๋Ÿฌ๋ฉ”์‹œ์ง€ ImportError: cannot import name 'db' from partially initialized module 'app' (most likely due to a circular import) ํ•ด๋‹น ์—๋Ÿฌ๋Š” ๋ชจ๋“ˆ ๊ฐ„์— ์„œ๋กœ๋ฅผ "์ƒํ˜ธ ์ฐธ์กฐ"ํ•  ๋•Œ ๋ฐœ์ƒํ•œ๋‹ค. ์ƒˆ๋กœ์šด ๋ชจ๋“ˆ์„ import ํ•ด์ค„ ๋•Œ ๊ผฌ์ด๋ฉด ํ•ด๋‹น ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค. ๋‚˜์˜ ๊ฒฝ์šฐ Flask ํ”„๋ ˆ์ž„์›Œํฌ๋ฅผ ์ด์šฉํ•ด์„œ ์•„๋ž˜์™€ ๊ฐ™์€ ํด๋” ๊ตฌ์กฐ๋กœ ๊ฐœ๋ฐœํ•˜๋‹ค๊ฐ€ ์œ„์˜ ์—๋Ÿฌ๋ฅผ ๋งŒ๋‚˜๊ฒŒ ๋˜์—ˆ๋‹ค. (์•„๋ž˜ ํด๋”๊ตฌ์กฐ๋Š” ๋‹จ์ˆœํ™”ํ•œ ๊ฒƒ์ž„) app/ โ”œโ”€โ”€ __init__.py โ”œโ”€โ”€ models.py โ”œโ”€โ”€ routers.py โ”œโ”€โ”€ config.py โ””โ”€โ”€ run.py app.py 1. __init__.py์™€ models.py์™€ app.py ํŒŒ์ผ์„ ๊ฐ๊ฐ ์ž์„ธํžˆ.. 2023. 4. 24.
[PostgreSQL ERROR] psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "0000_key"DETAIL: Key (0000)=() already exists. my github issue link: https://github.com/Gaebal-Zarang/gbzr-backend/issues/4 ์—๋Ÿฌ๋ฉ”์‹œ์ง€ psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "users_user_nickname_key" DETAIL: Key (nickname)=() already exists. - ์ฐธ๊ณ ํ•œ ๋ฐฉ๋ฒ• : https://snepbnt.tistory.com/252 : https://www.xmisao.com/2014/06/07/duplicate-key-value-violates-unique-constant-primary-key-on-postgresql.html - ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• 1. D.. 2023. 4. 19.
[Deploy] AWS EC2 ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ ๋ฐ Django ํ”„๋กœ์ ํŠธ ๋ฐฐํฌํ•˜๊ธฐ What is this? - AWS EC2: ์ธ์Šคํ„ด์Šค, ๊ฐ€์ƒ์˜ ์ปดํ“จํ„ฐ ์ด๋‹ค. EC2 ๋ž€? Elastic Compute Cloud์˜ ์ค„์ž„๋ง = ์ปดํ“จํ„ฐ๋ฅผ ํ†ต์งธ๋กœ ๋นŒ๋ ค์ฃผ๋Š” ์ปดํ“จํ„ฐ ์ž„๋Œ€ ์„œ๋น„์Šค = ์›๊ฒฉ ์ œ์–ด๋ฅผ ์ด์šฉํ•ด์„œ ์ปดํ“จํ„ฐ๋ฅผ ์กฐ์ž‘ํ•˜๊ณ  ๋” ์ด์ƒ ํ•„์š”๊ฐ€ ์—†์–ด์งˆ ๊ฒฝ์šฐ, ์–ธ์ œ๋“ ์ง€ ๋ฒ„๋ฆด ์ˆ˜ ์žˆ๋Š” ์„œ๋น„์Šค ec2์—์„œ๋Š” ๋Œ€์—ฌํ•˜๋Š” ํ•œ ๋Œ€์˜ ๊ฐ€์ƒ์ปดํ“จํ„ฐ๋ฅผ '์ธ์Šคํ„ด์Šค' ๋ผ๊ณ  ๋ถ€๋ฅธ๋‹ค. 1๏ธโƒฃ ์ธ์Šคํ„ด์Šค ์ƒ์„ฑํ•˜๊ธฐ 0. ์ปดํ“จํ„ฐ๋ฅผ ๋นŒ๋ฆฌ๊ธฐ ์ „ ๋จผ์ € ํ•ด์•ผํ•  ๊ฒƒ์€ ์–ด๋–ค ๋ฆฌ์ „(์ง€์—ญ)์— ์žˆ๋Š” ์ปดํ“จํ„ฐ๋ฅผ ๋นŒ๋ฆด ๊ฒƒ์ธ์ง€ ์ •ํ•˜๋Š” ๊ฒƒ ์ง€์—ญ์„ 'ํ•œ๊ตญ>์„œ์šธ'๋กœ ์„ค์ •ํ•ด์ค€๋‹ค. 1. ‘์ธ์Šคํ„ด์Šค ์‹œ์ž‘’ ๋ฒ„ํŠผ : ์ƒˆ๋กœ์šด ์ปดํ“จํ„ฐ๋ฅผ ๋นŒ๋ฆด ๋•Œ ๊ทธ ์ปดํ“จํ„ฐ์— ๊ธฐ๋ณธ์ ์œผ๋กœ ์–ด๋–ค ์šด์˜์ฒด์ œ, ์–ด๋–ค ์„œ๋น„์Šค๊ฐ€ ์„ค์น˜๋ ์ง€ ์ง€์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. 2. ์‚ฌ์šฉํ•  OS๋ฅผ ์„ ํƒํ•œ๋‹ค. ๋‚˜๋Š” ubuntu๋กœ ์„ ํƒ.. 2023. 3. 7.
[TIL] MySQL ๋ช…๋ น์–ด ์ •๋ฆฌ 1. ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ ‘์† : MYSQL ํด๋ผ์ด์–ธํŠธ๋กœ ์ ‘์†ํ•˜๊ธฐ ์œ„ํ•ด์„œ ํ„ฐ๋ฏธ๋„์— ์•„๋ž˜์™€ ๊ฐ™์€ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅ $ mysql -u ์‚ฌ์šฉ์ž์ด๋ฆ„ -p 2. ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์กฐํšŒ : MYSQL ์„œ๋ฒ„์— ์žˆ๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์กฐํšŒ mysql> SHOW DATABASES; 3. ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„ ํƒ : MYSQL ์„œ๋ฒ„์— ์ ‘์† ํ›„, ์‚ฌ์šฉํ•  ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„ ํƒ mysql> USE ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์ด๋ฆ„; 4. ํ…Œ์ด๋ธ” ์กฐํšŒ : ์„ ํƒํ•œ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์žˆ๋Š” ํ…Œ์ด๋ธ”์„ ์กฐํšŒ mysql> SHOW TABLES; 5. ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋งŒ๋“œ๋Š” ๋ช…๋ น์–ด mysql> CREATE DATABASE ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์ด๋ฆ„; 6. ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์‚ญ์ œํ•˜๋Š” ๋ช…๋ น์–ด ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๊ฐ์ฒด(์Šคํ‚ค๋งˆ)๋ฅผ ์‚ญ์ œํ•˜๋Š” ๋ช…๋ น์–ด ํ•ด๋‹น ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์™€ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋‚ด๋ถ€์˜ ๋ชจ๋“  ๊ฐ์ฒด(ํ…Œ์ด๋ธ”, ๋ทฐ, ์ธ๋ฑ์Šค ๋“ฑ)๊ฐ€ .. 2023. 3. 6.
[TIL] FastAPI tutorial (based documentation) ์ฐธ๊ณ ํ•œ ๊ณต์‹ ๋ฌธ์„œ(tutorial): https://fastapi.tiangolo.com/tutorial ์ฐธ๊ณ ํ•œ ๊ณต์‹ ๋ฌธ์„œ(advanced): https://fastapi.tiangolo.com/advanced ์ฐธ๊ณ ํ•œ fastapi BLOG: https://lucky516.tistory.com/97 ์Šค๊ฐฑ์˜ ๊นƒํ—ˆ๋ธŒ ๋งํฌ: https://github.com/mathtkang/fastapi-tutorial ์ž‘์„ฑํ•œ ๋…ธ์…˜ํŽ˜์ด์ง€: https://sprinkle-piccolo-9fc.notion.site/TIL-FastAPI-tutorial-13052523e8ae48ad8b3e1c66ce859aa9 TIL (FastAPI tutorial) from fastapi import FastAPI app = FastAPI().. 2023. 3. 6.
[TIL] Django tutorial (based documentation) ์ฐธ๊ณ ํ•œ ๊ณต์‹ ๋ฌธ์„œ: https://docs.djangoproject.com/ko/4.1 ์Šค๊ฐฑ์˜ ๊นƒํ—ˆ๋ธŒ ๋งํฌ: https://github.com/mathtkang/django-tutorial ์ž‘์„ฑํ•œ ๋…ธ์…˜ํŽ˜์ด์ง€: https://sprinkle-piccolo-9fc.notion.site/TIL-Django-tutorial-eb8fec3e3f2a4592b880dbda311f9749 TIL (Django tutorial) docs tutorial์„ ๋ณด๋ฉด์„œ, ๋‚ด๊ฐ€ ์ƒˆ๋กญ๊ฒŒ ์•Œ๊ฒŒ๋œ ๊ฒƒ ์œ„์ฃผ๋กœ ์ •๋ฆฌํ•ฉ๋‹ˆ๋‹ค. + ์›ํ•˜๋Š”๋Œ€๋กœ ์ปค์Šคํ…€ ํ•ด๋ณด๊ธฐ! https://docs.djangoproject.com/ko/4.1 sprinkle-piccolo-9fc.notion.site 2023. 3. 6.
[TIL] pyenv + poetry๋กœ ๊ฐœ๋ฐœํ™˜๊ฒฝ์„ธํŒ… ํ•˜๊ธฐ (+ python interpreter setting) (๊ฐ€์ƒํ™˜๊ฒฝ์„ ์‚ฌ์šฉํ•˜๋Š” ์ด์œ ์— ๋Œ€ํ•ด์„œ๋Š” ์„ค๋ช…ํ•˜์ง€ ์•Š์Œ) ๋” ์„ธ๋ถ€์ ์ธ, ๊ฐ๊ฐ์˜ ์„œ๋“œํŒŒํ‹ฐ๋“ค์˜ ์‚ฌ์šฉ ๋ชฉ์  ์ด์œ ์— ๋Œ€ํ•ด ์„ค๋ช… pyenv & pip & poetry ์˜ ์ฐจ์ด์  - venv : python ๊ฐ€์ƒํ™˜๊ฒฝ์„ ๋งŒ๋“ค์–ด์คŒ - pyenv: ์—ฌ๋Ÿฌ ๋ฒ„์ „์˜ python์„ ์„ค์น˜ํ•˜๊ณ  ์›ํ•˜๋Š” python version์„ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋„๋ก ๋„์™€์คŒ ์‚ฌ์šฉ์ž๋ณ„๋กœ ๊ธ€๋กœ๋ฒŒ ํŒŒ์ด์ฌ ๋ฒ„์ „์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š”. (Let you change the global Python version on a per-user basis.) ํ”„๋กœ์ ํŠธ๋ณ„๋กœ ํŒŒ์ด์ฌ ๋ฒ„์ „์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š”. (Provide support for per-project Python versions.) ํ™˜๊ฒฝ๋ณ€์ˆ˜๋กœ ํŒŒ์ด์ฌ ๋ฒ„์ „์„ ๋Œ€์ฒดํ•  ์ˆ˜ ์žˆ์–ด์š”. (Allow you to overrid.. 2022. 3. 20.
[TIL] Postgres/PostgreSQL ๋ช…๋ น์–ด ์ •๋ฆฌ [psql DB ์ ‘์†] $ psql -h localhost -U -d [psql shell ์ง„์ž…] $ psql ๊ธฐ๋ณธ์ ์œผ๋กœ psql์—์„œ๋Š” postgres ๋ผ๋Š” ์œ ์ €๊ฐ€ ์ƒ์„ฑ๋˜์–ด ์žˆ๋‹ค. ๊ทธ๋ž˜์„œ $ psql -U postgres -h localhost ๋ฅผ ์ž…๋ ฅํ•˜๊ณ  psql ์„ค์น˜์‹œ ์ž…๋ ฅํ•œ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด postgres(๋Š” db๊ฐ€ ์•„๋‹ˆ์ง€๋งŒ)๋ช…์˜ psql ์‰˜์ด ์—ด๋ฆฌ๋Š” ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค. (์›๋ž˜๋Š” psql ์‰˜์ด ์—ด๋ฆด ๋•Œ ๋‚˜์˜ค๋Š” =# ์•ž๋ถ€๋ถ„์€ DB name์ด๋‹ค.) 1๏ธโƒฃ USER - postgres ๊ณ„์ •(USER) ๋ชฉ๋ก ์กฐํšŒ ๋ฐฉ๋ฒ• =# SELECT * FROM PG_USER; =# \du 2022. 3. 17.
[ERROR] ERROR: syntax error at or near "-" # ์—๋Ÿฌ ๋ฐœ์ƒ ์ƒํ™ฉ 'practice'๋ผ๋Š” DB์—์„œ 'fastapi-pracitce'๋ผ๋Š” DB๋ฅผ ์‚ญ์ œํ•˜๊ณ  ์‹ถ์Œ (DROP DATABASE) '-' ๊ตฌ๋ฌธ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๊ฒŒ ๋จ # ์—๋Ÿฌ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• =# DROP DATABASE fastapi-practice; ๋ผ๊ณ  ํ•˜๋ฉด DBname์— '-' ๊ฐ€ ์žˆ์–ด์„œ ํ•˜๋‚˜์˜ DBname์œผ๋กœ ์ธ์‹์„ ๋ชปํ•˜๊ณ  ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š”๊ฑฐ์˜€๋‹ค! THEREFORE, DBname์„ ํ•˜๋‚˜๋กœ ์ธ์‹ํ•˜๋„๋ก, ""(stringํ™”)์œผ๋กœ ๊ฐ์‹ธ์คŒ 2022. 3. 1.
DROP DATABASE ํ•  ๋•Œ, ์ด์Šˆ ๋ฐœ์ƒ ๋ฐ ํ•ด๊ฒฐ๋ฐฉ๋ฒ• my github issue link: https://github.com/Gaebal-Zarang/gbzr-backend/issues/5 ์—๋Ÿฌ๋ฉ”์‹œ์ง€ ERROR: database "gbzrdb" is being accessed by other users DETAIL: There is 1 other session using the database. - ์ฐธ๊ณ  ๋ฐ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•: https://scriptcrunch.com/there-is-1-other-session 2022. 1. 29.
[Git] git commit message template ์ ์šฉํ•˜๊ธฐ ์ด์ „ ํฌ์ŠคํŒ…(https://kkangsg.tistory.com/95)์—์„œ commit message convention์— ๋Œ€ํ•ด ์•Œ์•„๋ณด์•˜๋‹ค. ์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” ํ•ด๋‹น convention์„ ๋”ฐ๋ฅด๋Š” Git commit message template ์ „์ฒด๋ฅผ ์‚ดํŽด๋ณด๊ณ  global๊ณผ local์— ์ ์šฉํ•ด์„œ ์•ž์œผ๋กœ ๋‚˜์˜ ํ”„๋กœ์ ํŠธ์— commit message template์„ ์ ์šฉํ•˜๋„๋ก ํ•˜๊ฒ ๋‹ค.๐Ÿงš 1. commit message template ์†Œ๊ฐœ ๋‚˜๋Š” ์•„๋ž˜์™€ ๊ฐ™์€ ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ํ…œํ”Œ๋ฆฟ์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค. Gitmoji๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์ฐธ๊ณ ํ•ด์•ผํ•  ๋ถ€๋ถ„๋“ค์„ ์ถ”๊ฐ€๋กœ ์ ์–ด์ฃผ์—ˆ๋‹ค. (ํ…œํ”Œ๋ฆฟ์˜ ๋‚ด์šฉ์ด ์™œ ์ด๋ ‡๊ฒŒ ๊ตฌ์„ฑ๋˜์—ˆ๋Š”์ง€ ์•Œ๊ณ  ์‹ถ๋‹ค๋ฉด ์ด์ „ ํฌ์ŠคํŒ…(convention)์— ๋Œ€ํ•ด ์ฐธ๊ณ ํ•˜๋ฉด ๋œ๋‹ค) ################ # : ์˜ ํ˜•์‹.. 2021. 9. 12.
[Git] git commit message convention์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ธฐ ์ง€๊ธˆ๊นŒ์ง€ ๊นƒ์„ ์ด์šฉํ•œ ๋ฒ„์ „๊ด€๋ฆฌ๋ฅผ ํ•˜๋ฉด์„œ ์ˆ˜๋งŽ์€ ์ปค๋ฐ‹์„ ํ–ˆ์ง€๋งŒ, ์ €์žฅ๋งŒ ์ž˜ํ•˜๋ฉด ๋˜์ง€ ๋ญ~ ๋ผ๋Š” ์ƒ๊ฐ์œผ๋กœ ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ์ž‘์„ฑ์—๋Š” ํฌ๊ฒŒ ์‹ ๊ฒฝ์“ฐ์ง€ ์•Š์•˜๋‹ค. ๋Œ€์ถฉ ์ „์ฒด์ ์œผ๋กœ ํฌ๊ด„์ ์ธ ๋ฉ”์‹œ์ง€๋ฅผ ์ ๊ฑฐ๋‚˜ ๋ณ€๊ฒฝ๋œ ๋ถ€๋ถ„๋“ค ์ค‘ ๋Œ€ํ‘œ์ ์œผ๋กœ ๋ฐ”๋€ ๋ถ€๋ถ„๋งŒ ์ ๊ธฐ๋„ ํ•˜์˜€๋‹ค. ํ•˜์ง€๋งŒ ์ด๋ฒˆ ํŒ€ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด์„œ ๋‹ค๊ฐ™์ด ํ•˜๋‚˜์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ๋ถ„ํ• ํ•˜์—ฌ ์ง„ํ–‰ํ•˜๊ณ  pushํ•˜๊ฒŒ ๋˜๋‹ˆ๊นŒ, ์„œ๋กœ๊ฐ€ ์–ด๋–ค ๋ถ€๋ถ„์„ ์–ด๋–ค ๋ชฉ์ ์„ ๊ฐ€์ง€๊ณ  ์–ด๋–ป๊ฒŒ ๊ตฌํ˜„ํ–ˆ๋Š”์ง€ ์•Œ์•„์•ผ ํ•˜๋Š” ์ƒํ™ฉ์ด ๋˜์—ˆ๋‹ค. ๋ฌผ๋ก  ๋ฐ์ผ๋ฆฌ ์Šคํฌ๋Ÿผ์„ ํ†ตํ•ด์„œ ํ˜„์žฌ ์ง„ํ–‰ ์ค‘์ธ ์ž‘์—…์„ ๊ฐ„๋‹จํ•˜๊ฒŒ ๊ณต์œ ํ•˜๊ณ  ์žˆ์ง€๋งŒ, ๋” ๊ตฌ์ฒด์ ์œผ๋กœ github repo์—์„œ ์ง์ ‘ ์ฝ”๋“œ๋ฅผ ๋ณด๊ณ  ์–ด๋Š ๋ถ€๋ถ„์„ ์ง„ํ–‰ํ–ˆ๋Š”์ง€ ์•Œ ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ git commit message template์„ ์‚ฌ์šฉํ•˜๊ธฐ๋กœ ํ–ˆ๋‹ค. ์ด๋ฒˆ ๊ธฐํšŒ์— ๊ถ๊ธˆํ–ˆ๋˜ ๋ถ€๋ถ„๋“ค,.. 2021. 8. 17.