angular 2 프로젝트를 firebase에 배포하려고합니다. 처음으로 성공했지만 그 후 프로젝트가 firebase에 배포되었지만 URL에 표시되지 않습니다. (Firebase 호스팅의 시작 페이지 만 표시됨) dist 폴더로 이동 했음에도 불구하고 빌드 작업 후) firebase init가 여전히 상위 디렉토리에서 실행 중이므로 문제가 발생할 수 있습니다. 이것을 해결하는 방법?
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\Users\BEN> e:
PS E:\> cd project\angular-proj
PS E:\project\angular-proj>
PS E:\project\angular-proj> cd dist
PS E:\project\angular-proj\dist> firebase init
######## #### ######## ######## ######## ### ###### ########
## ## ## ## ## ## ## ## ## ## ##
###### ## ######## ###### ######## ######### ###### ######
## ## ## ## ## ## ## ## ## ## ##
## #### ## ## ######## ######## ## ## ###### ########
You're about to initialize a Firebase project in this directory:
E:\project\angular-proj
Before we get started, keep in mind:
* You are initializing in an existing Firebase project directory
? Are you ready to proceed? (Y/n) n
나는 문제의 원인을 찾을 수 있었다. 응용 프로그램을 빌드하는 동안 'ng build --prod'대신 'ng build -prod'를 입력했습니다. 이제 문제가 해결되었습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다