์๋ ํ์ธ์ Firebase ํ์ ๋๋ค.
WSL์์ ์๋ํ๋ ์๋ฎฌ๋ ์ดํฐ๋ฅผ ์ป๋ ๋ฐ ์ฑ๊ณตํ์ง ๋ชปํ์ต๋๋ค.
์ต๊ทผ ์
๋ฐ์ดํธ(https://github.com/firebase/firebase-tools/issues/1458)์์ port was not active within 3000ms
๋ฌธ์ ๊ฐ ์์ ๋์์ต๋๋ค.
์ต์ข ๋ชฉํ๋ ๋ช ๋ น ํ๋กฌํํธ์์ ํจ์ ์ถ๋ ฅ์ ๋ณด์ฌ์ฃผ๋ console.log()๋ฅผ ๊ฐ๋ ๊ฒ์ ๋๋ค.
์ธ๋ถ์ ๋ณด๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
์ญ์ ํ์ง ๋ง์ญ์์ค. validate_template=true template_path=.github/ISSUE_TEMPLATE/bug_report.md Firebase ์ปค๋ฎค๋ํฐ์ ๊ธฐ์ฌํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค! md5-0f1f6d7495f991c445263bca56695b0b ์, ์ฐ๋ฆฌ๋ ํ์คํ ์๋ฒฝํ์ง ์์ต๋๋ค! ์ด ํ ํ๋ฆฟ์ ์ฌ์ฉํ๊ณ ๋ฌธ์ ๋ฅผ ์ด โโ๋ ์ต์ํ์ ์ฌํ์ ํฌํจํ์ญ์์ค. ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ๋ฐฉ๋ฒ์ ์๊ณ ๊ณ์๋ค๋ฉด ํ ๋ฆฌํ์คํธ๋ฅผ ์์ฑํด ์ฃผ์๋ฉด ๊ธฐ๊บผ์ด ๊ฒํ ํด ๋๋ฆฌ๊ฒ ์ต๋๋ค! md5-47c13f787f5fd82d900c7a50e43b625f ์ข์ต๋๋ค. ์ ํ์ ๊ฐ์ ํ ์ ์๋ ๋ฐฉ๋ฒ์ ๋ฃ๊ณ ์ถ์ต๋๋ค! ๊ทธ๋ฌ๋ ์ด ํ ํ๋ฆฟ์ ์ฌ์ฉํ์ฌ ๊ธฐ๋ฅ ์์ฒญ์ ์ ์ถํ์ง ๋ง์ญ์์ค. ๊ธฐ๋ฅ ์์ฒญ์ ๋ค์ ์ฃผ์๋ก ์ ์ถํด ์ฃผ์ธ์. https://firebase.google.com/support/contact/bugs-features/ md5-f2912b50011b616213b4697ac756eb10 ๋ง์ ์ง์์ ๋ฐ๊ณ ์์ง๋ง GitHub๋ ์ต์ ์ ์ฅ์๊ฐ ์๋๋๋ค. ํ์๋ฉ๋๋ค. ๋จผ์ ๊ฐ์ด๋๋ฅผ ์ดํด๋ณด์ธ์. https://firebase.google.com/docs/cli/ ๊ณต์ ๋ฌธ์๊ฐ ๋์์ด ๋์ง ์์ผ๋ฉด ๊ณต์ ์ง์ ์ฑ๋(https://firebase.google.com/)์ ํตํด ๋ฌธ์ํด ๋ณด์ธ์. support/ ์ปค๋ฎค๋ํฐ์์ ์๋ฃจ์ ์ด๋ ์ง์์ ํ์ธํ ์ ์๋ ์ถ๊ฐ ์์น: - Stack Overflow: https://stackoverflow.com/ - Firebase Slack ์ปค๋ฎค๋ํฐ: https://firebase.community/ *์ฌ๋ฌ ์ฑ๋์ ์ค๋ณต ๊ฒ์๋ฅผ ๋ฐฉ์งํ์ธ์!*
Firebase ๋๊ตฌ: 7.5.0
ํ๋ซํผ: Windows/WSL
ํ
์คํธ ๋ช
๋ น์ ๋ถ์ฌ๋ฃ์์ต๋๋ค. ๋ฌธ์ ๋ ํญ์ ์์ ์ ์ผ๋ก ๋ฐ์ํ๋ฉฐ ์๋ฎฌ๋ ์ดํฐ๋ฅผ ์์ํ ์ ์์ต๋๋ค.
์๋ฎฌ๋ ์ดํฐ๊ฐ ์์๋์ด์ผ ํ๋ฉฐ Firebase ํจ์ ์ถ๋ ฅ์ ๋ช
๋ น ํ๋กฌํํธ์์ ๋ณผ ์ ์์ต๋๋ค.
firebase-debug.log
[๋๋ฒ๊ทธ] [2019-10-10T21:19:08.690Z] ----------------------------------- -----------------------------------
[๋๋ฒ๊ทธ] [2019-10-10T21:19:08.693Z] ๋ช
๋ น: /home/standard/.nvm/versions/node/v10.16.0/bin/node /home/standard/.nvm/versions/node/v10. 16.0/bin/firebase ์๋ฎฌ๋ ์ดํฐ:์์
[๋๋ฒ๊ทธ] [2019-10-10T21:19:08.693Z] CLI ๋ฒ์ : 7.5.0
[๋๋ฒ๊ทธ] [2019-10-10T21:19:08.693Z] ํ๋ซํผ: ๋ฆฌ๋
์ค
[๋๋ฒ๊ทธ] [2019-10-10T21:19:08.693Z] ๋
ธ๋ ๋ฒ์ : v10.16.0
[๋๋ฒ๊ทธ] [2019-10-10T21:19:09.522Z] ์๊ฐ: Fri Oct 11 2019 07:19:08 GMT+1000 (GMT+10:00)
[๋๋ฒ๊ทธ] [2019-10-10T21:19:09.522Z] ----------------------------------- -----------------------------------
[๋๋ฒ๊ทธ]
[๋๋ฒ๊ทธ] [2019-10-10T21:19:09.537Z] > ๋ช
๋ น์ ๋ฒ์๊ฐ ํ์ํฉ๋๋ค. ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https: //www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[๋๋ฒ๊ทธ] [2019-10-10T21:19:09.539Z] > ๋ก๊ทธ์ธํ ์ฌ์ฉ์๋ฅผ ํตํด ๊ถํ ๋ถ์ฌ
[์ ๋ณด] i ์๋ฎฌ๋ ์ดํฐ ์์: ["functions","firestore","hosting"]
[๊ฒฝ๊ณ ] โ ์์ฒญํ "๋
ธ๋" ๋ฒ์ "8"์ด ๊ธ๋ก๋ฒ ๋ฒ์ "10"๊ณผ ์ผ์นํ์ง ์์ต๋๋ค
[์ ๋ณด] โ ๊ธฐ๋ฅ: http://localhost :5001์์ ์๋ฎฌ๋ ์ดํฐ ์์
[info] i firestore: http://localhost :8080์์ ๋ชจ๋ ํธ๋ํฝ(WebChannel ํฌํจ) ์ ๊ณต
[๊ฒฝ๊ณ ] โ firestore: ๋ณ๋์ ํฌํธ(8081)์์ WebChannel์ ๋ํ ์ง์์ ๋ ์ด์ ์ฌ์ฉ๋์ง ์์ผ๋ฉฐ ๊ณง ์ค๋จ๋ ์์ ์
๋๋ค. ๋์ ์์ ํฌํธ๋ฅผ ์ฌ์ฉํ์ญ์์ค.
[๋๋ฒ๊ทธ] [2019-10-10T21:19:09.939Z] ์ง์๋์ง ์๋ ์ธ์ ๋ฌด์: projectId
[๋๋ฒ๊ทธ] [2019-10-10T21:19:09.939Z] ์ง์๋์ง ์๋ ์ธ์ ๋ฌด์: auto_download
[๋๋ฒ๊ทธ] [2019-10-10T21:19:09.939Z] {"binary":"java","args":["-Duser.language=en","-jar","/ ๋ช
๋ น์ผ๋ก ์๋ฎฌ๋ ์ดํฐ Firestore ์์ home/DIR_NAME/standard/.cache/firebase/emulators/cloud-firestore-emulator-v1.9.0.jar","--host","localhost","--port",8080,"--rules", "/mnt/c/Users/Standard/Documents/GitHub/DIR/firestore.rules","--functions_emulator"," localhost:5001 ","--webchannel_port",8081],"optionalArgs":["ํฌํธ" ,"webchannel_port","ํธ์คํธ","๊ท์น","functions_emulator"]}
[์ ๋ณด] i firestore: firestore-debug.log์ ๋ก๊น
ํ๋ ์๋ฎฌ๋ ์ดํฐ
[์ ๋ณด] i ์๋ฎฌ๋ ์ดํฐ๋ฅผ ์ข
๋ฃํฉ๋๋ค.
[์ ๋ณด] i ๊ธฐ๋ฅ ์๋ฎฌ๋ ์ดํฐ ์ค์ง
[๋๋ฒ๊ทธ] [2019-10-10T21:19:09.999Z] ์ค๋ฅ: ์คํฐ ์๋ฐ EACCES
Process.ChildProcess._handle.oneexit์์ (๋ด๋ถ/child_process.js:240:19)
onErrorNT์์ (internal/child_process.js:415:16)
process._tickCallback์์ (๋ด๋ถ/ํ๋ก์ธ์ค/next_tick.js:63:19)
[์ค๋ฅ]
[์ค๋ฅ] ์ค๋ฅ: ์๊ธฐ์น ์์ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.
๋ํ Firebase ์๋น์ค๋ฅผ ์คํํฉ๋๋ค.
โ DIR_NAMEgit:(๋ง์คํฐ) โ Firebase ์๋น์ค --only ๊ธฐ๋ฅ [11/10/19| ์ค์ 8์ 19๋ถ]
โ ์์ฒญํ "๋
ธ๋" ๋ฒ์ "8"์ด ๊ธ๋ก๋ฒ ๋ฒ์ "10"๊ณผ ์ผ์นํ์ง ์์ต๋๋ค.
โ ๊ธฐ๋ฅ: http://localhost :5000์์ ์๋ฎฌ๋ ์ดํฐ ์์
i functions: Cloud Functions์ฉ โโ'/mnt/c/Users/Standard/Documents/GitHub/DIR_NAME/functions' ๋ณด๊ธฐ...
git:(๋ง์คํฐ) โ Firebase ์๋ฎฌ๋ ์ดํฐ:start --debug [11/10/19| ์ค์ 8์ 30๋ถ]
[2019-10-10T21:31:51.586Z] -------------------------------------- --------------------------------
[2019-10-10T21:31:51.594Z] ๋ช
๋ น: /home/standard/.nvm/versions/node/v10.16.0/bin/node /home/standard/.nvm/versions/node/v10.16.0/bin /firebase ์๋ฎฌ๋ ์ดํฐ:start --debug
[2019-10-10T21:31:51.598Z] CLI ๋ฒ์ : 7.5.0
[2019-10-10T21:31:51.599Z] ํ๋ซํผ: ๋ฆฌ๋
์ค
[2019-10-10T21:31:51.600Z] ๋
ธ๋ ๋ฒ์ : v10.16.0
[2019-10-10T21:31:52.440Z] ์๊ฐ: 2019๋
10์ 11์ผ ๊ธ์์ผ 07:31:51 GMT+1000 (GMT+10:00)
[2019-10-10T21:31:52.444Z] -------------------------------------- --------------------------------
[2019-10-10T21:31:52.464Z] > ๋ช
๋ น์๋ ๋ฒ์๊ฐ ํ์ํฉ๋๋ค. ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www .googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2019-10-10T21:31:52.472Z] > ๋ก๊ทธ์ธํ ์ฌ์ฉ์๋ฅผ ํตํด ๊ถํ ๋ถ์ฌ
i ์๋ฎฌ๋ ์ดํฐ ์์: ["functions","firestore","hosting"]
โ ์์ฒญํ "๋
ธ๋" ๋ฒ์ "8"์ด ๊ธ๋ก๋ฒ ๋ฒ์ "10"๊ณผ ์ผ์นํ์ง ์์ต๋๋ค.
โ ๊ธฐ๋ฅ: http://localhost :5001์์ ์๋ฎฌ๋ ์ดํฐ ์์
i firestore: http://localhost :8080์์ ๋ชจ๋ ํธ๋ํฝ(WebChannel ํฌํจ) ์ ๊ณต
โ firestore: ๋ณ๋์ ํฌํธ(8081)์์ WebChannel์ ๋ํ ์ง์์ ๋ ์ด์ ์ฌ์ฉ๋์ง ์์ผ๋ฉฐ ๊ณง ์ค๋จ๋ ์์ ์
๋๋ค. ๋์ ์์ ํฌํธ๋ฅผ ์ฌ์ฉํ์ญ์์ค.
[2019-10-10T21:31:52.848Z] ์ง์๋์ง ์๋ ์ธ์ ๋ฌด์: projectId
[2019-10-10T21:31:52.850Z] ์ง์๋์ง ์๋ ์ธ์ ๋ฌด์: auto_download
[2019-10-10T21:31:52.851Z] {"binary":"java","args":["-Duser.language=en","-jar","/home/standard ๋ช
๋ น์ผ๋ก ์๋ฎฌ๋ ์ดํฐ Firestore ์์ /.cache/firebase/emulators/cloud-firestore-emulator-v1.9.0.jar","--host","localhost","--port",8080,"--rules","/mnt/c /Users/Standard/Documents/GitHub/DIR_NAME/firestore.rules","--functions_emulator"," localhost:5001 ","--webchannel_port",8081],"optionalArgs":["port","webchannel_port", "ํธ์คํธ","๊ท์น","functions_emulator"]}
i firestore: firestore-debug.log์ ๋ก๊น
ํ๋ ์๋ฎฌ๋ ์ดํฐ
i ์๋ฎฌ๋ ์ดํฐ ์ข
๋ฃ.
i ์ค์ง ๊ธฐ๋ฅ ์๋ฎฌ๋ ์ดํฐ
[2019-10-10T21:31:52.924Z] ์ค๋ฅ: ์๋ฐ EACCES ์์ฑ
Process.ChildProcess._handle.oneexit์์ (๋ด๋ถ/child_process.js:240:19)
onErrorNT์์ (internal/child_process.js:415:16)
process._tickCallback์์ (๋ด๋ถ/ํ๋ก์ธ์ค/next_tick.js:63:19)
์ค๋ฅ: ์๊ธฐ์น ์์ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.
์ด ๋ฌธ์ ์๋ ํ ํ๋ฆฟ์ ํ์ํ ๋ชจ๋ ์ ๋ณด๊ฐ ์์ต๋๋ค. ์ผ๋ถ ์น์ ์ ์์ฑํ๋ ๊ฒ์ ์์ ๊ฒ ๊ฐ์ต๋๋ค. ์์ธํ ์ ๋ณด๋ก ๋ฌธ์ ๋ฅผ ์ ๋ฐ์ดํธํ์ญ์์ค.
@barnu5 java
์ค์น๋์ด ์์ต๋๊น? java -version
์ ์คํํ๊ณ ์ด๋ค ๋ฒ์ ์ด ์๋์ง ์๋ ค์ฃผ์ค ์ ์์ต๋๊น?
๋์์ ์ฃผ์ @samtstern ์๊ฒ ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
์ด์ ๋ค์๊ณผ ๊ฐ์ด Java๋ฅผ ๋ณ๋๋ก ์ค์นํ์ต๋๋ค. https://wiki.jmk.hu/wiki/Install_Java_Development_Kit_on_Windows_Subsystem_for_Linux
์ด์ ๋ช
๋ น ํ๋กฌํํธ์์ ํธ์คํ
๋ก๊น
์ด ๋ค์๊ณผ ๊ฐ์ด ํ์๋ฉ๋๋ค. `127.0.0.1 - - [10/Oct/2019:22:14:40 +0000] "GET /static/media/image.f098d4b4.svg HTTP/1.1" 200 1783 " http://localhost :5000/app" "Mozilla/5.0(Windows NT 10.0, Win64, x64) AppleWebKit/537.36
(Gecko์ ๊ฐ์ KHTML) Chrome/77.0.3865.90 Safari/537.36"
์ฝ์์์ Firebase ๊ธฐ๋ฅ ๋ก๊น ์ถ๋ ฅ์ ์ด๋ป๊ฒ ๋ณผ ์ ์์ต๋๊น?
@barnu5 ํจ์๊ฐ console.log()
๋ฅผ ํธ์ถํ๋ฉด ํจ์๊ฐ ์คํ๋ ๋ ์ฝ์์ ํด๋น ์ถ๋ ฅ์ด ํ์๋์ด์ผ ํฉ๋๋ค. ํ์๋์ง ์๋ ๊ฒฝ์ฐ ํด๋น ๋ฌธ์ ์ ๋ํด ์ ๋ฌธ์ ๋ฅผ ์ ์ถํ์ธ์.
java
๊ฐ ์์ ๋ ์๋ ค์ผ ํ๊ธฐ ๋๋ฌธ์ ์ด ๋ฌธ์ ์ ์ด๋ฆ์ ๋ฐ๊พธ์์ต๋๋ค. ํ์ง๋ง ๋ถ๋ช
ํ ์ฐ๋ฆฌ๋ ๊ทธ๋ ์ง ์์ต๋๋ค.
@samttern ๊ทธ๋ฐ ๊ฒฝ์ฐ์๋ ๋ค๋ฅธ ํ๋๋ฅผ ๋ซ์์ต๋๋ค! ๋ก๊น ์ ๋ํ ์๋ก์ด ๋ฌธ์ ๋ฅผ ์ ์ถํ ๊ฒ์ ๋๋ค!
์ฐ๋ฆฌ๊ฐ ์ด๊ฒ์ ๋ ์ ๊ฐ์งํ ์ ์๋๋ก ์ด๊ฒ์ ์ด์ด๋๊ณ ์ถ์ต๋๋ค.