Nginx - Streamlit 프록시 설정 방법
·
💻 Study/웹
Streamlit과 Nginx 각각에서의 설정을 해줘야 하다. Streamlit아무것도 설정할 필요 없다. 기본값으로 8501번 포트에서 streamlit app이 실행된다.만약 port 등을 설정하고 싶다면, 프로젝트 디렉토리 내 .streamlit/config.toml 에서 설정할 수 있다.# 예시[server]port=8000 Nginx/etc/nginx/nginx.conf 에서 nginx가 지켜볼 port와 이 port로 들어오는 요청을 전달할 주소, 즉, streamlit이 실행되고 있는 주소를 연결해줘야 한다. http.server 설정을 아래와 같이 해준다.proxy_pass에는 streamlit app이 실행되고 있는 주소를 넣어줘야 한다.따로 설정해준 게 없다면, http://localh..
[Node.js] MySQL2 모듈 장기간 연결 문제 해결
·
💻 Study/웹
발생한 오류도커로 MySQL 데이터베이스와 연결된 Node.js 서버 컨테이너를 밤새 실행해둔 채로 퇴근 후, 다음날 출근해서 보니 아래와 같은 오류가 발생했다.Error: Can't add new command when connection is in closed stateError: This socket has been ended by the other party Error: Can't add new command when connection is in closed state데이터베이스 연결이 이미 닫혔음에도 새로운 쿼리나 명령을 실행하려고 할 때 발생하는 오류이다. 연결이 예기치 않게 닫힌 경우 또는 장시간 연결로 연결이 닫혔을 때 발생할 수 있다. 네트워크 문제, 데이터베이스 서버 설정, 또는 연결..
Docker 사용법: 기본 커맨드
·
💻 Study/Docker 도커
Container 컨테이너# 특정 컨테이너 중지docker container stop [컨테이너ID]# 특정 컨테이너 삭제docker container rm [컨테이너ID]# 특정 컨테이너 여러 개 중지docker container stop [컨테이너ID] [컨테이너ID] [컨테이너ID] ...# 특정 컨테이너 여러 개 삭제docker container rm [컨테이너ID] [컨테이너ID] [컨테이너ID] ...# 모든 컨테이너 중지docker stop $(docker ps -a)#모든 컨테이너 삭제docker rm $(docker ps -a) Image 이미지# 이미지 삭제docker rmi [이미지ID]# 모든 이미지 삭제docker rmi $(docker images -q) Volume 볼륨컴퓨터와..
[React] map() vs forEach(): Array.prototype.map() expects a return value from arrow function.
·
💻 Study/웹
WARNING in [eslint]src/components/views/MainPage/index.js    Line 241:24: Array.prototype.map() expects a return value from arrow function.The error you're seeing, Array.prototype.map() expects a return value from arrow function, occurs because the map function is used incorrectly. The map function expects a return value from the arrow function used within it. If you don't need to transform the ..
2024년 여름 목표
·
🚩 목표 & 회고
🎁 성장하자🐌 열심히 살자  🌊 2024 여름 목표 (06 - 08) ✨ 6월☑ 사이드 프로젝트☑ SKT FLY AI Challenger 지원: 합격 >> 불참☑ LG Aimers 5기 지원: 합격☑ Google ML Bootcamp 5기 지원: 불합😢☑ 오픈소스 컨트리뷰톤 2024 지원: 불합😢☑ 취업준비☑ AI by Hand (Workbook)다 실천해낸 건 처음인 것 같아요 💛  🐬 7월☑ 사이드 프로젝트 (완료)◻ AI by Hand (Workbook) 끝내기 (진행중)☑ LG Aimers 5기 Phase 1 (완료)☑ Naver 부스트캠프 AI Tech 지원: 온라인테스트 미응시 (채용일정과 겹침)☑ 취업준비◻ 알고리즘 공부하기◻ 영어 공부하기  🐳 8월 ☑ 회사 적응하기 ☑ 부스..
[Error] The path {path} is not shared from the host and is not known to Docker.
·
💻 Study/Docker 도커
Error response from daemon: Mounts denied: The path /mnt/ssd2/docker-test/db/conf.d is not shared from the host and is not known to Docker.You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing. 이 에러는 docker desktop을 통해 아주 간단하게 해결할 수 있다. 1. docker desktop 우측 상단의 톱니바퀴 아이콘을 눌러 설정(Setting)으로 이동한다.2. 목록에서 Resources > File sharing을 눌러 이동한다.3. Virtual file shares에 공유..