개발(14)
-
[nodejs] html to image 로 이미지에 글자 및 이미지 넣기 / 한글 깨짐 오류 해결
body.html {txtInfo} app.jsconst fs = require("fs");const nodeHtmlToImage = require("node-html-to-image");...const contentMig = (html, data)=>{ Object.keys(data).forEach(key=>{ const rex = new RegExp(`\{${key}\}`, "g"); html = html.replace(rex, data[key]); }); // 서브 이미지 사용여부 확인 ( Default: true ) if (data.useImage ==..
2024.06.26 -
[Mac m1] canvas node package 설치 오류
# 발생한 에러 로그 npm ERR! code 1npm ERR! path /...dir.../node_modules/canvasnpm ERR! command failednpm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binarynpm ERR! Failed to execute '/...dir.../.nvm/versions/node/v18.17.0/bin/node /...dir.../.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --mod..
2024.06.04 -
[Mac] nvm / node.js 설치
1. homebrew 설치 site: https://brew.sh/ko/ HomebrewThe Missing Package Manager for macOS (or Linux).brew.sh # homebrew 설치/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"# 설치 확인brew -v# Homebrew 4.3.3 # 설치 확인brew -v# Homebrew 4.3.3 2. nvm 설치 및 환경변수 설정2-1. homebrew 를 통한 nvm 설치 # homebrew 를 이용한 nvm 설치brew install nvm2-2. nvm 환경변수 설정을 위한 디렉토리 생성# nvm 환경변..
2024.06.04 -
jenkins 다중 서버 배포 (pipeline)
Jenkins 설치 / Publish over SSH 플러그인 설정 완료된 후 과정 1. SSH 접속 관련 설정 Jenkins 관리 - 시스템 설정 에 들어간다. 쭉 내리다 보면 보이는 Publish over SSH 관련 설정을 추가해줘야한다. Name : Jenkins 에서 보여질 명칭 Hostname : 서버 주소 Username : 서버 계정 Remote Directory : 경로 를 입력 후 [고급] 버튼 클릭 및 Use password authentication, or use a different key 체크하여 키를 등록한다. Test Configuration Success 가 나오면 성공 다만 서버 버전이 우분투 22 버전일 경우 오류가 발생하는 경우도 있다. ( 18 버전은 잘 됨 ) ht..
2023.02.15 -
Mac Druid 사용 테스트
1. Druid 설치 https://www.apache.org/dyn/closer.cgi?path=/druid/25.0.0/apache-druid-25.0.0-bin.tar.gz Apache Downloads We suggest the following site for your download: https://dlcdn.apache.org/druid/25.0.0/apache-druid-25.0.0-bin.tar.gz Alternate download locations are suggested below. It is essential that you verify the integrity of the downloaded file using the PGP signa www.apache.org 2. Java 8..
2023.01.17 -
MAC 에서 ssh 연결 편하게 하기
1. ~/.ssh/config 파일 편집(생성) Host [접속시 사용할 명칭] HostName [주소] User [유저명] IdentityFile [파일경로/파일명.pem] Host testServer HostName 111.22.33.44 User user IdentityFile ~/.ssh/test.pem 로그인시 패스워드를 사용할 경우 마지막줄을 지워주면 된다. 2. 확인 ssh testServer
2021.11.06