Giter Club home page Giter Club logo

laravel's Introduction

Test Repository

본 소스는 Laravel 8.83.x를 기반으로 만든 Sample Repository 입니다.

Deploy Procedures

배포는 Github Flow를 따른다.
github_flow

전체 구성도
구성도


용어 정의

  • Upstream(운영에 배포되는 저장소)
  • Origin(Upstream에서 Fork 한 개인 저장소)
  • Local(세팅된 개인별 도커 개발 환경)- Origin 저장소
  • Dev(세팅 예정인 개인별 도커 개발환경)- Origin 저장소

배포 절차는 3단계로 구성된다.

  • 소스 동기화
  • 개발 및 테스트
  • Pull Request 생성

1. 소스 동기화

Github FLow는 Upstream이 항상 최신을 유지.
Upstream에 변경사항이 추가 되었을 수 있으니 Upstream -> Origin으로 소스 동기화를 진행합니다.

개인별 Github
fetch merge

이후 로컬 소스 동기화 방법

1) docker cli 사용  
docker-desktop -> containers -> cli  
#sudo su -  
#cd /www/laravel  (프로젝트 위치)  
#git pull origin main

2) windows git 사용    
windows 해당 프로젝트 폴더 -> 우클릭 -> Git Bash Here  
$git pull origin main

2. 개발, 테스트

뚝딱뚝딱

  1. Local 개발.
  2. Origin Push
    1st commit 전 최초 설정
    #git config --global user.email "이메일주소"
    #git config --global user.name "이름"

push 전 Token 발급
git세팅

git_develop

git_personal

git_token_set

토큰 재확인이 불가하므로, 소중히 보관.

   서버접속방법  
   2-1) docker cli 사용
   docker-desktop -> containers -> cli  
   #sudo su -  
   #cd /www/laravel  (프로젝트 위치)  

   2-2) windows git 사용
   windows 해당 프로젝트 폴더 -> 우클릭 -> Git Bash Here

   접속 후 명령어
   #git remote -v (origin 경로 확인)
   #git status (상태 확인)
   #git add .   (모든파일 add)
   #git commit -m "변경사항"  
   #git push origin main  

   push 후 위에서 발급받은 Token id, pw 입력
  • add, commit, push의 차이
    github_flow
  1. Dev Docker에서 Origin Pull & Test
    준비중

3. Pull Request 생성

Origin Repository에서 Upstream으로 Pull Request 생성.
생성시 작업한 내역 comment.

이후 작업 시 1-3 반복

참고 및 추가 자료)

laravel's People

Contributors

siliconii-hanjin avatar hanjinjung avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.