전체 글

· Web
[문제 상황] [문제 원인] 301 permanent redirect 이것은 말그대로 요청한 정보(사이트나 페이지)가 영구적으로 옮겼다는것을 말해줍니다. 302 temporary redirect 302 redirect는 현재 페이지나 사이트를 일시적으로만 옮겼다는것을 말해줍니다. [해결] [Refference] https://support.getpostman.com/hc/en-us/articles/211913929-I-sent-a-POST-request-but-Postman-seems-to-be-sending-a-GET-request- I sent a POST request, but Postman seems to be sending a GET request. This is mostly due to a s..
· 기타/git
[문제상황] 간혹 원래 없던 폴더를 생성하거나 파일 이름을 바꾼것 만으로도 오류 발생함. 혹은 Git 주소를 변경하는 경우 "error:src refspec master does not match any" Message가 뜨면서 push가 거부되는 현상이 발생할 수 있다. [해결] ※ Local Repository 에 commit 된 내용이 남아있을 경우 초기화해도 먹히지 않을 경우 (아래 방법 실패시) git rm --cached ./ 이 명령어를 입력하고 아래 순서대로 명령하면 됨. git init git add ./ git commit -m "message" git remote add origin "git remote repository URL" git push -u origin master
· 기타/git
.gitignore 파일 형상관리시에 staging Area, Local, Remote Repository에 등록될 필요가 없는 파일을 자동으로 제외시켜주는 파일이다. ex. Log, Backup File, Compiled File gitignore 자동설정내역 생성페이지 를 들어가면 개발환경에 맞게 기본 설정된 gitignore 파일 내역을 출력해준다. add 취소 (File Staging Cancel) git reset "File name or Directory Name" default: File, Directory Name 생략시 add했던 모든 파일과 디렉토리. 최근 commit 취소 git reset [option] HEAD HEAD의 위치를 옮겨서 마지막 commit을 취소함. (HEAD는 현..
· 기타/git
Working Directory 사용자가 실제로 작업하는 폴더 Staging Area 확정할 변경 사항을 준비시키는 영역 Local Repsitory 사용자 컴퓨터 로컬 환경에 위치한 저장소. Remote Repository: Github, Gitlab 등에 위치한 원격 저장소. origin : local repository의 원본 원격 저장소 따라서 git push -u origin master 는 현재 Local Repsotiry 와 설정된 origin (remote repository) 를 연결시키며 푸쉬하겠다는 의미로. -u 옵션과 --set-upstream 옵션은 같은 역할을 한다고 보면된다. local - remote repository 연결이 성사되면 그 순간부터 -u 옵션을 생략하고 git..
· Web/Nodejs
1. 용도 단방향 해쉬함수를 통해 비밀번호 (회원가입, 로그인)등 암호화 node.js 에서 지원! 2. module 설치 npm install --save bcrypt npm install -g bcrypt-nodejs (※ Windows OS 경우 Error 가능성 많아 windows-tool Package 별도 설치 필요) 3. 예제 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 const SALT_ROUNDS = 10; const bcrypt = require('bcrypt'); //test전용 2가지 패스워드 //bycrpt hash method error : //data..
· Private
보호되어 있는 글입니다.
M_Falcon
Falcon