전체 글249 내 pc 호스팅 주소 강제 설정 https://likedev.tistory.com/entry/%EC%9C%88%EB%8F%84%EC%9A%B0-PC%EC%97%90%EC%84%9C-Hosts-%ED%8C%8C%EC%9D%BC-%EC%84%A4%EC%A0%95-%EB%B0%A9%EB%B2%95 윈도우 PC에서 Hosts 파일 위치, 수정 방법Hosts 파일은 도메인 이름을 IP 주소에 매핑하는 간단한 텍스트 파일입니다.이를 사용하여 특정 웹사이트의 IP 주소를 직접 지정하거나, 특정 웹사이트에 접근을 차단할 수 있습니다. 이 가이드는likedev.tistory.com위 링크대로 하면됨. 주소 앞에 http:// https:// 없이 입력해야하고웹에서는 http로 1차 접근후 https로 접근해야 접근됨. 2024. 12. 4. cron 꺼져있을때 실행하는법, 간단한 명령어 정리 리스트 보기grontab -l 리스트 수정하기grontab -e 접속 페이지수정 명령어i 종료:q 저장 후 정료:wq작동확인 명령어# ps -ef | grep cron 아래 두줄 나오면 정상 실행중 root ~~~ 00:00:00 /usr/sbin/crond -n root ~~~ 00:00:00 grep --color=auto cron 한줄만 나오면 실행안되고 있음root ~~~ 00:00:00 grep --color=auto cron 실행 명령어 systemctl start crond 2024. 11. 26. CI3 서브 도메인 abc.ddd.com aaa.ddd.com 회원정보 세션 공유 같은 ip에서 여러 서브도메인으로 다른 프로젝트틀 같은 세션 회원정보 공유하는방법각 프로젝트 application/config/config.php$config['cookie_prefix'] = '';$config['cookie_domain'] = '.도메인명.com';$config['cookie_path'] = '/';$config['cookie_secure'] = FALSE;$config['cookie_httponly'] = FALSE;$config['cookie_samesite'] = 'None'; cookie_domain 을 똑같이 설정https 아래 참고| 'cookie_secure' = Cookie will only be set if a se.. 2024. 11. 13. www 이외의 웹 도메인 설정하는 방법 1. 도메인 관리 콘솔 설정도메인 abc.도메인명.com 으로 아래와 같이 DNS 레코드 설정A abc222.239.111.222 (대상ip)600 DNS 설정2. 엔진x나 아파치에서 ip받아서 설정 처리 2024. 11. 12. vue 팝업 종료,subscribeAction 사용시 팝업 종료해도 지속작동함. beforeDestory() 로 제거해줘야함. 예시 Vue.js의 mounted 라이프사이클 훅은 컴포넌트가 화면에 마운트된 후에 호출됩니다. 따라서 모달이 닫혀도 컴포넌트가 마운트된 상태에서는 mounted 훅이 호출될 수 있습니다. 모달이 닫힌 후에 컴포넌트의 라이프사이클 훅이 더 이상 호출되지 않도록 하려면, beforeDestroy 라이프사이클 훅에서 해당 컴포넌트에서 사용한 리소스들을 해제하고 이벤트 리스너 등을 제거해주면 됩니다. mounted(){ const me = this; me.unsubscribe = me.$store.subscribeAction({ after: (action, state) => { switch(action.type){ case 'kioskStore/IDLE_INCREASE': if(me.maxIdleTime == me.. 2023. 2. 28. 부트스트랩 팝업 백그라운드 스코롤 안되고 팝업만 되게하기 div class="d-flex h-100 overflow-auto"> 2023. 2. 17. electron 빌드 오류 in mac m1 This is not a published, standalone application and we are unable to locate the .NET Core SDK. 명령어 "electron:serve": "vue-cli-service electron:serve -- --ia32 --mode none", ia32 칩이 문제일거 같음(삽질) Uncaught Exception: Error: This is not a published, standalone application and we are unable to locate the .NET Core SDK. Please make sure that it is installed; see http://microsoft.com/net/core for more details. at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846) at Object.Module._ext.. 2023. 1. 31. vue emit사용시 on 이 없어도 에러 발생하지 않는다. emit과 on은 한쌍으로 부모 자식 페이지 간의 호출부분과 작동부분이 별도의 페이지에 작성된다. 그러므로 emit명령어를 작성한 후 그에 상응하는 on 함수를 작성하지 않더라도 에러를 표출하지 않는다. emit소스는 해당 함수를 호출하고 역할을 마친다. 마찬가지로 on또한 emit으로 호출하는 영역이 존재하지 않더라도 문제되지 않는다. this.$root.$emit('startFunction', { val1: 0, val2: 0}); this.$root.$on('startFunction', async (params) => { if(params.tabIndex == me.tabIndex){ console.log('checkLine1'); if(params.val2){ console.log('checkLi.. 2023. 1. 26. 상식) laravel 트렌젝션을 열었으면 꼭 닫기 처리를 해주어야 한다. 트렌젝션 종료가 안되면 중복사용시 로직이 꼬여서 난리가 날 수 있다. 사용예시 try{ DB::beginTransaction(); if(true){ DB::rollback(); }else{ DB::commit(); } }catch(e){ DB::rollback(); } 2023. 1. 26. 상식) 배열 관련 처리시 try catch finall 배열 관련 데이터를 처리할 때에는 index 값이 존재하지 않을시 에러를 표출하기 때문에 try catch문으로 예외 처리를 해두어야 에러가 발생하지 않는다. 예시 try{ this.item = items[this.Index]; }catch(e){ console.error(e); }finally{ } 2023. 1. 26. laravel eloquent where문 () or and 처리 eloquent ->where('company_id', $companyId) ->where(function ($q){ $q->whereIn('status', ['ongoing', 'partially']) ->whereIn('type', ['dine']); //테이블 겔제대기 or 부분결제 })->orWhere(function($q){ $q->whereIn('status', ['hold']) ->whereIn('type', ['takeout']); //보류 }) ->orderBy('created_at', 'desc'); mysql // where ((status='onging' or status='partially') and type='dind') // or ((status='hold') and type=.. 2023. 1. 20. nvm node npm 버전 비일치 https://nodejs.org/ko/download/releases/ 이전 릴리스 | Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org node 14.8 => npm 6 점대가 정상이나 npm9가 설치되는 현상 발생 nvm 으로 14.8 제거 후 재 설치 하여 해결! 2023. 1. 18. 이전 1 2 3 4 ··· 21 다음