목록전체 글 (439)
FILife
https://github.com/finaleaf/vue-sfc-scaffolding finaleaf/vue-sfc-scaffolding Contribute to finaleaf/vue-sfc-scaffolding development by creating an account on GitHub. github.com composer와 npm은 미리 설치한다. webpack.mix.js 파일에 작성해둔 내용이 있다면 백업 해 둔다. 프로젝트 디렉토리에 들어가서 아래와 같이 installer.sh 파일을 실행한다. wget https://raw.githubusercontent.com/finaleaf/vue-sfc-scaffolding/master/installer.sh && chmod +x installer...
.form-group { position: relative; margin-bottom: 1.5rem; } .form-control-placeholder { position: absolute; top: 0; padding: 7px 0 0 13px; transition: all 200ms; opacity: 0.5; color: red; } .form-control:focus + .form-control-placeholder, .form-control:valid + .form-control-placeholder { font-size: 75%; transform: translate3d(0, -100%, 0); opacity: 1; } 매우 잘 된다. 출처: stackoverflow.com/a/58736840 H..
라라벨 doc에도 나와있지만, 이해가 잘 안가서 겁나 헤매다 쓴다. 알다시피 Eloquent의 강력한 기능 중 하나는 relation 일것이다. 1:1 또는 1:n 관계 까지는 별 문제가 없었는데, 연결된 테이블과 연결된 테이블을 가져오는것이 어려웠다. 이런 경우 사용되는 메서드는 hasOneThrough, hasManyThrough, belongsToThrough 등이 있는데, 이것을 기록하려 한다. 먼저 테이블 구조는, 1. 카테고리 테이블 category (Model: Category) id INT, NN, AI, UQ name VARCHAR color VARCHAR created_at DATETIME 2. 카테고리와 상품을 연결하는 category_items (Model: CategoryItems..
위 구성에서 "Host key verification failed." 오류가 발생하는 경우다. 1. EC2 키 파일의 owner를 gitlab-runner 로 변경해준다. 단, 그룹은 유지. 2. 키 파일의 권한은 400 3. .gitlab-ci.yml 파일의 before_script 부분에 아래 세 줄을 넣어준다. - ssh-keyscan -H '{EC2-PUBLIC-DNS}' >> ~/.ssh/known_hosts - ssh-keyscan ec2-{EC2-PUBLIC-DNS} | sort -u - ~/.ssh/known_hosts -o ~/.ssh/known_hosts - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config 물론 {EC2..