본문 바로가기

728x90
반응형

티스토리챌린지

(21)
Nginx: 새로 켰더니 Nginx가 실행이 안되어 있을 때 in Mac brew services start nginx Try re-running the command as root for richer errors.Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/sir/Library/LaunchAgents/homebrew.mxcl.nginx.plist` exited with 5.위 명령어로 nginx가 실행이 안될 때  nginx 만 입력해서 명령어를 날려보자.  ChatGPT: with 'nginx' command, server is started. Is it compatible in linux ubuntu? And what is the difference between 'nginx' and ..
Nginx: restart in Mac mac에서 웹서버로 nginx를 구동하고 있다.설정 반영을 위해 재시작을 하려는데 homebrew를 통해서 설치해서재시작을 할 때 아래 명령어를 사용할 수 있다고 한다.brew services restart nginx 그럼 아래와 같이 잘 됐다는 메시지가 나오는데==> Successfully stopped `nginx` (label: homebrew.mxcl.nginx)==> Successfully started `nginx` (label: homebrew.mxcl.nginx) 이렇게해서 restart가 되지 않는 경우가 있다.그럴 경우 아래 명령어 적용sudo nginx -s reload ChatGPT 와의 질문 내용도 추가When 'brew services restart nginx' command i..
React Native: iOS - FCM # firebase cloud message # Notification # 애플 개발자 등록 react native firebase 라이브러리공식 사이트: https://rnfirebase.io/ import messaging from '@react-native-firebase/messaging';async function handleAfterLogin() { const fcmToken = await messaging().getToken(); ... 로그인 시, 해당 디바이스에서 사용될 fcmToken을 얻기 위해 위와 같은 로직이 있다.Android에서는 추가 설정이 필요 없었는데iOS에서는 아래와 같은 오류가 나온다. Error: [messaging/unregistered] You must be registered for remote messages before calling ge..
React Native: iOS 네이버 로그인 # react-native-seoul/naver-login # .env # AppDelegate.mm import 문제 React Native iOS에 네이버 로그인 구현을 위해 react-native-seoul/naver-login 라이브러리를 이용하려고 한다. github repo: https://github.com/crossplatformkorea/react-native-naver-login 사용 방법은 위 깃허브의 README를 잘 읽어보고 하면 된다. 이 포스팅에서는 위 라이브러리를 적용하면서 발생한 이슈와 .env 파일을 사용하는 방법에 대해서 서술 1. ios/project명/AppDelegate.mm import 문제#import 공식 문서에서 ios/프로젝트명/AppDelegate에 위와 같이 import 하고 설정을 추가하도록 되어있다. 모든 설정을 마치고 XCode에서 빌드시 내가 마주한 에러는 다음과..
React Native: iOS 구글 로그인 # url schema # client id React Native를 통해 iOS 구글 로그인 구현 react-native-google-signin/google-signin 위 라이브러리를 통해 구글 로그인을 구현하기 위해iOS용 OAuth 클라이언트 ID를 만들고 나면, 2가지 설정을 해주어야 한다. 1. react native 코드 단에서 GoogleSignin.configure 설정에 google client id를 추가2. XCode를 통해서 iOS 네이티브 단의 Info.plist에  ios url schema를 추가. 처음에 정확히 파악하지 못하고 둘 다 google client id 또는 ios url schema를 추가했었는데, 구글 로그인 버튼을 누르면 앱이 꺼져버리는 현상이 발생했었다.  .env 파일을 통해 관리하고 있어서 아래..
ssh 접속 오류: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!Someone could be eavesdropping on you right now (man-in-the-middle attack)!It is also possible that a host key has just been changed. ssh를 통해 접속한 원격서버에, id_rsa.pub 키를 등록해놓은 상태였다. ip 주소를 11.11.11.11 과 같은 숫자 대신에 abc.net 과 같이 도메인 명을 통해서 접속했다. 그런데 위 제목과 같은 오류가 발생- 아마 별칭은 같은데 실제 ip 주소가 달라진 것으로 보인다. 아래 명령어를 통해 해당 도메인과 관련된 키를 삭제하고 접속하면 된다.ssh-keygen -R hostname 위와 같이 해도 안되면,.ssh/known_hosts 파일을 직접 수정해서, 해당 hostname에 관련된 줄을 삭제한다. (Ctrl + K?) 다시 접속하면 비밀번호 통해서 접속할 수 있도록 가능해진다.(ex: ssh ubuntu@abc.net) 참조: https://ocxanc.tistory.com/58
git: git stash -p # git stash 부분적으로 하기 git stash는, 아직 커밋되지 않은 모든 변화분을 임시보관하며 변화분이 없도록 한다. 그런데 git rebase 등을 통해 특정 커밋 내역의 작업내용을 바꾸려할 때, git stash pop을 통해 변화분을 가져올 수 있는데,문제는 원하지 않는 작업 내용이 포함되어 있기 때문에다시 git stash를 할 수도 없고, git rebase --continue를 할수도 없다. 이때, 특정 변화분만 stash를 통해서 남겨두거나, 남겨두지 않을 수 있다.  위 사진과 같이 build.gradle, LoginScreen.js, ProfileUpdateScreen.js의 3가지 작업내역 중에,ProfileUpdateScreen.js만 남겨두고git stash를 통해서 build.gradle, LoginScre..
React Native: iOS CKEditor 적용하기 # .js 파일 로드 실패 # metro.config.js # Error: ...cannot be loaded as its extension is not registered in assetExts html 파일을 통해 CKEditor Webview 를 이용하고자 한다. ckedtior 압축 파일을 받아서 react native 프로젝트 내에 assets안에 포함시켜주었고,다음과 같이 적용 ckeditor_form.html 안에는 다음과 같이 ckeditor.js 파일을 로드 ... Android에서는 문제가 없는데iOS는 실행시 아래와 같이 ckeditor.js를 로드할 수 없다고 오류 발생하며 CKEditor에 아이콘이 적용되지 않는 등 Webview html에 적용되어야할 js 파일이 로드되지 못함으로써 동작이 안됨Error: 'ios/assets/lib/ckeditor/ckeditor.js' cannot be loaded as its extension is ..

728x90
반응형