pangyoelon

  • 홈
  • 태그
  • 방명록

aws 1

ec2에서 환경변수 설정 중 오류

dotenv.config({ path: process.env.NODE_ENV === 'development' ? '.env.dev' : '.env.prod', }); 위와 같이 main.ts에서 dotenv를 임포트 해오는 코드에서 문제가 있었다 분명 로컬에서는 실행이 문제 없이 잘 됐는데, ec2환경에서만 파일을 잘못읽어오는 것이다 아래와 같이 변경하자 문제가 해결됐따 dotenv.config({ path: process.env.NODE_ENV === 'development' ? './.env.dev' : './.env.prod', });// 👆 👆 위와 같이 window와 달리 linux에서는 상대경로 설정을 구체적으로 해주어야한다

aws 2023.06.07
이전
1
다음
더보기
프로필사진

pangyoelon

블록체인 개발자 https://github.com/km3140 https://velog.io/@pangyoelon

  • 분류 전체보기 (29)
    • BlockChain (4)
    • Node.js (6)
    • Javascript (1)
    • Solidity (4)
    • Git (3)
    • Go (1)
    • Shell (1)
    • 정보처리기사 (1)
    • React (2)
    • etc (2)
    • Typescript (1)
    • 해커톤 (1)
    • aws (1)

Tag

깃허브 옵션, react, git, solidity, 비트코인, glitch hackathon, 블록체인, ethersjs, axios baseURL, Rebase, 구글링 연산자 이스케이프, tx.wait, 글리치 해커톤, 2022년 3월 5일 기출, 채굴, TypeError: Member "push" not found or not visible after argument-dependent lookup in, undefined hackathon, lens protocol, cors오류, undefined hacker house,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • Github

티스토리툴바