ucap-doc/documents/업무/dev/51_00_UCAP_환경설정.txt

122 lines
3.0 KiB
Plaintext
Raw Normal View History

2020-11-11 23:43:18 +00:00
nexus 인증서 설치
chrome
https://10.81.13.229/nexus/repository/npm-all/ 로그인
주소창왼쪽 느낌표 아이콘 클릭 인증서 클릭
자세히 -> 파일에복사 -> 인증서 내보내기 마법사 시작
-> DER로 인코딩된 바이너리 X.509(.CER))(D) 선택 후 다음 -> 바탕화면 저장 -> 인증서 클릭 후 설치
======== UCAP ===================================================
0. Git
1) url
> http://10.81.13.229:9080/
ID: leejh
PW: 1q2w3e4r5t
1. npm nexus
1) Nexus url
> http://10.81.13.221:8081/nexus/ < old
> http://10.81.13.229:8081/
ID: leejh
PW: 1q2w3e4r5t
2) setting
> setting registry
> npm config set registry http://10.81.13.221:8081/nexus/repository/npm-all/
> Authentication Using Basic Auth
> https://help.sonatype.com/repomanager3/formats/npm-registry#npmRegistry-AuthenticationUsingBasicAuth
> sample .npmrc : (C:\Users\user\.npmrc)
registry=http://10.81.13.221:8081/nexus/repository/npm-all/
email=leejh@biztechpartners.co.kr
always-auth=true
_auth=bGVlamluaG86cXdlcG9pMDk4NyEh
3) set publish
> npm --registry http://10.81.13.221:8081/nexus/repository/npm-ucap/ login
> Username: leejinho
Password: qwepoi0987!!
Email: (this IS public) leejinho@gmail.com
Logged in as leejinho on http://10.81.13.221:8081/nexus/repository/npm-ucap/.
2. Module
1) ucap
> install / build
> file:pack 부분을 제거하고 npm install
2) ucap-angular
> install / build
> file:pack 부분을 제거하고 npm install
3) ucap-electron
> install / build
> file:pack 부분을 제거하고 npm install
4) ucap-lg-desktop
5) ucap-lg-web
9. Server
1) DEV
13.124.88.127
administrator
uc#uc@pLG
D:\UCAP\service\NvWeb_NewPC-PROD
D:\UCAP\service\NvWeb_NewPC-DEV
0. local start
1) browser
1. ucap-lg-web
> npm run start:app
> npm run start:chat
* 하나씩 진행(동시진행 X)
2) electron
1. ucap-lg-web
> npm run start:app:renderer
> npm run start:chat:renderer
* 하나씩 진행(동시진행 X)
2. ucap-lg-desktop
> npm run start
> 중간에 멈추면(Auto attach 가 잘 안들어서 멈춤)
> F1 > Debug:Attach to Node Process
> cmd: /d /s /c "electron ^^^" 어쩌고저쩌고 선택.
0. Build
1) browser
1. ucap-lg-web
> environment.prod.ts
모든 ModuleConfig 의 domain 을 상황에 맞게 수정.
> dev : 13.124.88.127
> prod : www.lgucap.com
모든 ModuleConfig 의 protocol 을 상황에 맞게 수정.
> dev : http
> prod : https
> npm run build:app:production
> npm run build:chat:production
> app 패키지 배포.
> app 배포 폴더 밑에 /multi-view/chat/ 폴더 생성후 그 밑에 chat 패키지 배포.
2) electron
1. ucap-lg-web
> npm run build:app:production-renderer
> npm run build:chat:production:renderer
> (MOVE) ./dist/{생성폴더} => ../ucap-lg-desktop/dist-resources/{생성폴더}
2. ucap-lg-desktop
> npm run build
> npm run pack:windows:x64