TIL : Flask ์—๋Ÿฌ + git Pull Request ๋ณด๋‚ด๊ธฐ
728x90

1. Today, What I learned?

์˜ค๋Š˜์€ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด์„œ ์ฒซ PR์„ ๋ณด๋‚ด๋ณด์•˜๋‹ค!..

ํ•œ๋ฒˆ PR ๋ณด๋‚ด๋‹ˆ ๊ทธ๊ฐ„์˜ ๋‘๋ ค์›€์ด ๋ˆˆ ๋…น๋“ฏ์ด ์‚ฌ๋ผ์ง€๋Š” ๋งค์ง.. โœจ

Flask ์—๋Ÿฌ์™€ html ํƒœ๊ทธ ์—๋Ÿฌ ๋“ฑ๋“ฑ ์ˆ˜์ •ํ–ˆ๊ณ  ์•„์ง ๋งˆ๋ฌด๋ฆฌ ์ž‘์—…์ด ์ข€ ๋” ๋‚จ์•„์žˆ๊ธฐ๋Š” ํ•˜์ง€๋งŒ ๐Ÿฅฒ..

์ผ๋‹จ ์˜ค๋Š˜ ์•Œ๊ฒŒ ๋œ ๋ถ€๋ถ„ ์ •๋ฆฌ๋ฅผ ํ•ด๋ณธ๋‹ค!

 

 

Flask ๊ด€๋ จ ์—๋Ÿฌ

์„œ๋ฒ„๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ์—๋Ÿฌ๊ฐ€ ์ค„์ค„ ๊ธธ๊ฒŒ ๋‚˜์˜ค๋Š” ๊ฒƒ์„ ๋ฐœ๊ฒฌ...

๊ด€๋ จํ•ด์„œ ๊ตฌ๊ธ€์—๋„ ์ฐพ์•„๋ณด๋‹ˆ ํด๋” ๊ตฌ์กฐ์— ๋ฌธ์ œ๊ฐ€ ์žˆ์–ด์„œ ๋ฐœ์ƒํ•œ ์˜ค๋ฅ˜์˜€๋‹ค.

Flask ํ”„๋ ˆ์ž„์›Œํฌ์—์„œ๋Š” templates์— html ํŒŒ์ผ์„, static์— css, js ๋“ฑ ๋‚˜๋จธ์ง€ ์—์…‹ ํŒŒ์ผ์„ ๋‹ด์„ ์ˆ˜ ์žˆ๋Š”๋ฐ

์ด๋•Œ ํŒŒ์ผ ๊ตฌ์กฐ์—๋Š” templates ํด๋”๊ฐ€ ์—†์—ˆ๋‹ค!..

ํด๋” ๊ตฌ์กฐ๋ฅผ ์ œ๋Œ€๋กœ ๋งž์ถ”์–ด์„œ ํ•ด๊ฒฐ!

 

๊ด€๋ จ ๊ธ€ 

 

์ŠคํŒŒ๋ฅดํƒ€์ฝ”๋”ฉํด๋Ÿฝ

5์ฃผ ์™„์„ฑ! ์ฝ”๋”ฉ์„ ์ „ํ˜€ ๋ชจ๋ฅด๋Š” ๋น„๊ฐœ๋ฐœ์ž ๋Œ€์ƒ์˜ ์›น๊ฐœ๋ฐœ ๊ฐ•์˜

spartacodingclub.kr

 

 

 

git์œผ๋กœ Pull Request ๋ณด๋‚ด๊ธฐ

๋‚˜๋Š” ํ˜‘์—… ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋ฅผ fork ํ•ด์™€์„œ PR์„ ๋ณด๋‚ด๋Š” ๋ฐฉ์‹์„ ์„ ํƒํ–ˆ๋‹ค.

๋…ธ์…˜์—๋„ ์ •๋ฆฌํ•˜๊ธด ํ–ˆ์ง€๋งŒ ํ•œ๋ฒˆ ๋” ๋˜์ƒˆ๊ธฐ๊ธฐ ์œ„ํ•ด ์ •๋ฆฌํ•ด๋ณธ๋‹ค.

 

1. ํ˜‘์—… ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ๋‚ด ๊นƒํ—ˆ๋ธŒ๋กœ ํฌํฌ

 

2. ํฌํฌ ํ•ด์˜จ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ๋กœ์ปฌ๋กœ ํด๋ก  ํ•˜๊ธฐ

 

3. remote์— upstream ์ถ”๊ฐ€ํ•˜๊ธฐ

๋ณดํ†ต ํด๋ก  ํ›„์—๋Š” origin์ด๋ผ๋Š” ์ด๋ฆ„์œผ๋กœ remote๊ฐ€ ์ƒ์„ฑ๋˜๋Š”๋ฐ ์ด origin์€ ํฌํฌ ํ•ด์˜จ ๋‚ด ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋‹ค.

๊ทธ๋ž˜์„œ ํ˜‘์—… ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ์—์„œ ๋ณ€๊ฒฝ๋œ ๋‚ด์šฉ์„ ๋ฐ›์œผ๋ ค๋ฉด ์ถ”๊ฐ€ ์„ค์ •์ด ํ•„์š”ํ•˜๋‹ค!

upstream์ด๋ผ๋Š” ๋ช…์นญ์œผ๋กœ ์„ค์ •ํ•ด์ฃผ๋Š” ๊ฒƒ์ด ๊ด€๋ก€๋ผ๊ณ  ํ•œ๋‹ค.

 

4. pull ๋˜๋Š” fetch

 

5. ๋‚ด ์ž‘์—…ํ•˜๊ณ  commit๊ณผ push

 

6. PR ๋ณด๋‚ด๊ธฐ

7. ํŒ€์žฅ๋‹˜์˜ merge ๊ธฐ๋‹ค๋ฆฌ๊ธฐ~

๋จธ์ง€ ์™„!

 

์ฒ˜์Œ์—๋งŒ ํด๋ก  ํ•ด์˜จ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์—์„œ ๋ธŒ๋žœ์น˜๋ฅผ ์ƒ์„ฑํ•ด์„œ ํ–ˆ๋‹ค๊ฐ€..

๋ญ”๊ฐ€ ๋ณต์žกํ•ด์ ธ์„œ ๊ทธ๋ƒฅ ๋ฐ”๋กœ ๋ฉ”์ธ์—์„œ ์ž‘์—…ํ–ˆ๋Š”๋ฐ ์•ž์œผ๋กœ๋Š” ๋ธŒ๋žœ์น˜๋ฅผ ์ƒ์„ฑํ•ด์„œ ์ž‘์—…ํ•˜๋Š” ๊ฒƒ์— ์ต์ˆ™ํ•ด์ ธ ๋ณด๋„๋ก ํ•ด์•ผ๊ฒ ๋‹ค!..

๋ฒŒ์จ ๋‚ด์ผ์ด ๊ธˆ์š”์ผ์ด๋ผ๋‹ˆ ๐Ÿฅบ ..

 

ํ”„๋กœ์ ํŠธ๊ฐ€ ์ž˜ ๋งˆ๋ฌด๋ฆฌ๋  ์ˆ˜ ์žˆ๊ธธ!..

728x90