본문 바로가기

ZeroRadish

검색하기
ZeroRadish
프로필사진 ZeroRadish Etc

  • 분류 전체보기 (25)
    • Problems & Solutions (2)
    • IT Terms Glossary (0)
    • Useful & Beautiful (4)
    • JavaScript (1)
    • ReactNative (2)
    • Database (1)
    • OS (3)
      • CentOS (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/01   »
일 월 화 수 목 금 토
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
Tags
  • pg환경변수
  • 레드마인
  • 레드마인테마
  • node postgresql
  • yum설치목록
  • Node
  • sqlmap warring
  • 배열컬럼
  • rpm설치목록
  • redmine
  • sqlmap 경고
  • rpm목록
  • 레드마인 테마
  • 배열크기
  • nodejs 환경변수처리
  • Redmine theme
  • CentOS
  • intelij mybatis
  • 리액트네이티브
  • yum목록
  • dotenv
  • 패키지
  • tomcat install
  • Java
  • node.js postgresql
  • intelij sqlmap
  • 메소드한줄
  • 멀티 인스턴스
  • multi instance
  • .env
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록dotenv (1)

ZeroRadish

[Node.js] .env 파일로 환경변수를 관리 하기

아래는 server.js에서 pg패키지를 이용하여 Postgresql 접속테스트를 하기 위해 작성한 코드 일부에요new Clienct를 생성할때 하드코딩 되어 있는 접속 정보 객체의 값을 환경변수로 처리해보려고요const express = require('express');const path = require('path');const { Client } = require('pg');const app = express();const port = 3000;const client = new Client({ user: 'fubarvis', host: 'localhost', database: 'fubarvis', password: 'fubarvis', port: 5432,});client.connect(..

카테고리 없음 2024. 6. 5. 08:33
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바