Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- sendFile
- deserializeUser
- insertone
- Promise #async #await #try #catch
- github#githubpages#gh-pages#deploy
- typescript #class #constructor #public #private #static #extends #protected #typeof #in #instanceof #never
- connect-mongo
- typescript #class #extends #public #private #protected #static
- typescript #unknown
- typescript #import #export #*
- e.target
- typescript #constructor #class #public #private
- git#github#init#add#commit#restore#log#staging area#repository#git사용법
- updateone
- github#githubpages#빈화면#basename
- TypeScript #문법
- react#로스트아크#mbti#테스트
- ejs 문법
- serializeUser
- mongodb 입출력
- Passport
- CSS
- GitHub Actions
- expess
- __dirname
- git vscode
- 정적 페이지
- updatemany
- typescript #react #jsx #component #usestate
- github#로컬저장소#원격저장소
Archives
- Today
- Total
목록환경변수 (1)
VaIice의 이야기

1. 환경변수 저장 라이브러리 npm install dotenv // server.js require('dotenv').config() 2. 환경변수 보관 // .env PORT=8080 // server.js // 변경 전 app.listen(8080, () => { console.log('http://localhost:8080에서 서버 실행 중') }) // 변경 후 app.listen(process.env.PORT, () => { console.log('http://localhost:8080에서 서버 실행 중') }) // mongoDB 주소 const url = process.env.DB_URL process.env.변수명 3. middleware API에 ..
[Node.js]
2024. 7. 19. 00:04