์๋ ํ์ธ์,
firebase ์น ํํ ๋ฆฌ์ผ (https://codelabs.developers.google.com/codelabs/firebase-web/)์ ๋ฐ๋ฅด๊ณ ์์ต๋๋ค.
์ฒซ ๋ฒ์งธ 8 ๋จ๊ณ์์๋ ๋ชจ๋ ๊ฒ์ด ์ ์๋ํ์ง๋ง 9 ๋จ๊ณ์์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. firebase deploy
๋ช
๋ น์ด ๋ฌด๊ธฐํ ์ค๋จ๋ฉ๋๋ค.
ํ๋ก์ ๋ค์์๋ ๋์์ด ๋์์ด ์์ต๋๋ค (http_proxy ๋ฐ https_proxy๊ฐ env์ ์ค์ ๋จ).
ํ๋ก์ ๋ค์ ๋ฐฐํฌํ๋ ๋ฐฉ๋ฒ์ด ์์ต๋๊น?
36 ๋ฒ ๋ฌธ์ ์ ๊ด๋ จ๋ ๊ฒ ๊ฐ์ต๋๋ค.
Yann
๋ค์์ firebase deploy --debug
Command: node /Users/ymainier/.nvm/versions/node/v0.12.1/bin/firebase deploy --debug
CLI Version: 3.0.0
Platform: darwin
Node Version: v0.12.1
Time: Wed May 25 2016 16:46:59 GMT+0200 (CEST)
----------------------------------------------------------------------
> command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
>>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/friendlychat-dd6a6
<<< HTTP RESPONSE 200 server=nginx, date=Wed, 25 May 2016 14:47:57 GMT, content-type=application/json; charset=utf-8, content-length=124, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store
>>> HTTP REQUEST GET https://admin.firebase.com/v1/database/friendlychat-dd6a6/tokens
<<< HTTP RESPONSE 200 server=nginx, date=Wed, 25 May 2016 14:47:57 GMT, content-type=application/json; charset=utf-8, content-length=433, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store
์ด๊ฒ์ ์๋ ค์ง ๋ฌธ์ ์ ๋๋ค. ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์ฐพ๊ณ ์ถ์ง๋ง ๋ค์ ์๊ฐ์ด ๊ฑธ๋ฆด ์ ์์ต๋๋ค. ์ถ์ ํ ์ ์๋๋ก ๋ฌธ์ ๋ฅผ ์ด์ด ๋๊ฒ ์ต๋๋ค.
์ ๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. firebase ํ์ ๋ค์๊ณผ ๊ฐ์ด ์์ฑํฉ๋๋ค.
"ํ์ฌ๋ก์๋ ๋ถ๊ฐ๋ฅํฉ๋๋ค. https://github.com/firebase/firebase-tools/issues/155 ์์ ์ถ์ ํ ์ ์์ง๋ง ์์ ๋ ์ผ์ ์ ์์ต๋๋ค."
์ค์ ๋ก์ด ํ์ด์ง๋ฅผ ์ฐธ์กฐ XP
๋ง์ ๊ฐ๋ฐ์๊ฐ ์ง์ฅ์์์ด ๋๊ตฌ๋ฅผ ์ฌ์ฉํ๊ธฐ ๋๋ฌธ์ ๊ณง ์์ ๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
๋๋ ๊ฐ์ ๋ฌธ์ ๋ฅผ ๊ฐ์ง๊ณ ์๋ค. ๋ง์ ์์ ํ๊ฒฝ์์ firebase๋ฅผ ํ๊ฐํ๊ธฐ ์ด๋ ต๊ฒ ๋ง๋ญ๋๋ค. :( ๋ํ ์ง์์ ์์ฑ inet์ ํตํด ๋ฌธ์ ๊ฐ ์์ต๋๋ค (๋ณ๋์ ๋ฌธ์ ์ด๊ธฐ) : (_
์ฌ๊ธฐ์๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค! ๋ํ์ด ๋ฌธ์ ๋ ์ธ์ฆ์ ์ ์ธํ Android์ ๋ชจ๋ firebase ๊ธฐ๋ฅ์ ์์ต๋๋ค.
๋ด ์์ ์์ ์๋ํ๋๋ก ๊ด๋ฆฌํ์ง๋ง ๋ก๊ทธ์ธ ํ ์ ์์ต๋๋ค.
๋๋ ๋ํ` firebase login --no-localhost
์๋ํ์ง๋ง Error: Authentication Error.
๊ฐ์ ๋ฌธ์ ..
์ด ๋ฌธ์ ์ ๋ ๋ฒ ์์ด์ ..
์๊ฐ ์ ํ์ Firebase ๋
ธ๋ ๋ชจ๋์ด http_proxy
๋ฐ ๊ด๋ จ ํ๊ฒฝ ๋ณ์๋ฅผ ์ฌ์ฉํ์ง ์๋ faye-websockets๋ฅผ ์ฌ์ฉํ์ฌ ์ฐ๊ฒฐํ ๋ ๋ฐ์ํฉ๋๋ค.
ํด๊ฒฐ ๋ฐฉ๋ฒ์ผ๋ก faye-websockets์์ ํ๋ก์ ๊ตฌ์ฑ์ ํ๋ ์ฝ๋ฉํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช ํ๋ StackOverflow์ ๋ํ
์ฐ์ํ์ง๋ ์์ง๋ง ์ ์ด๋ ์ง๊ธ ๋ฐฐํฌ ํ ์ ์์ต๋๋ค. :)
์ฌ๊ธฐ์๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. ๋ค๋ฅธ ๋ชจ๋ firebase ๋ช ๋ น์ ์ ์๋ํ๋ ๊ฒ ๊ฐ์ต๋๋ค. "firebase deploy"๊ฐ ์ ์ผํ ๋ฌธ์ ์ ๋๋ค. ์ต์ํ ์ ์ ํ ์ค๋ฅ ๋ฉ์์ง๋ ์ข์ ๊ฒ์ ๋๋ค.
```
๋ช
๋ น : C : Program Filesnodejsnode.exe C : UsersmyusernameAppDataRoamingnpmnode_modulesfirebase-toolsbinfirebase deploy --debug
CLI ๋ฒ์ : 3.2.1
ํ๋ซํผ : win32
๋
ธ๋ ๋ฒ์ : v7.3.0
๋ช ๋ น์๋ ๋ฒ์๊ฐ ํ์ํฉ๋๋ค. [ "email", "openid", " https://www.googleapis.com/auth/cloudplatformprojects.readonly ", " https://www.googleapis.com/auth/firebase "]
HTTP ์์ฒญ ๋ฐ๊ธฐ https://admin.firebase.com/v1/projects/myprojectname-b5558
<<< HTTP RESPONSE 200 via = IG Proxy, date = Wed, 25 Jan 2017 16:04:38 GMT, server = nginx, connection = Close, content-type = application / json; charset = utf-8, cache-control = no-cache, no-store, content-length = 103, x-content-type-options = nosniff, strict-transport-security = max-age = 31536000; includeSubdomains
HTTP ์์ฒญ ๋ฐ๊ธฐ https://admin.firebase.com/v1/database/myprojectname-b5558/tokens
<<< HTTP RESPONSE 200 via = IG Proxy, date = Wed, 25 Jan 2017 16:04:38 GMT, server = nginx, connection = Close, content-type = application / json; charset = utf-8, cache-control = no-cache, no-store, content-length = 423, x-content-type-options = nosniff, strict-transport-security = max-age = 31536000; includeSubdomains```
<>
"firebase login"ํ ๋ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. ์ง๊ธ์ "firebase login --no-localhost"๋ก ํด๊ฒฐํ์ต๋๋ค. ํ์ง๋ง "firebase init"๋ฐ "firebase deploy"๋ฅผ ์์ ํ ์ ์์ต๋๋ค. ํญ์ "์ธ์ฆ ์ค๋ฅ"
๊ฐ์ ๋ฌธ์ ..
1 ๋ ํ์๋ ์ฌ์ ํ ํด๊ฒฐ๋์ง ์์ต๋๊น?
์ด์ ์ฌ์ ํ ๊ตฌ๊ณจ ..
์ฌ๊ธฐ์๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. ๋ค์์ ๋ด๊ฐ ๋ถ๋ฅด๋ ๋ช ๋ น์ด๋ฉฐ ๋์ผํ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
firebase database:set /object_name
์ฌ๊ธฐ์ ๊ฐ์ ๋ฌธ์ !!!!
"์ค๋ฅ : ์ธ์ฆ ์ค๋ฅ : ์๊ฒฉ ์ฆ๋ช
์ด ๋ ์ด์ ์ ํจํ์ง ์์ต๋๋ค. firebase login --reauth๋ฅผ ์คํํ์ญ์์ค.
CI ์๋ฒ ๋ฐ ํค๋๋ฆฌ์ค ํ๊ฒฝ์ ๊ฒฝ์ฐ firebase login : ci "๋ก ์ ํ ํฐ์ ์์ฑํฉ๋๋ค
ํ๋ก์ ๋ค์ ๋ฐฐํฌ ํ ๋ฐฉ๋ฒ์ด ์์ต๋๊น?
๊ทธ๊ฒ์ ๋์ ๊ธฐ๋ก์ด๋ค
[debug] ----------------------------------------------------------------------
[debug] Command: C:\Program Files\nodejs\node.exe C:\Users\SDS\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase deploy
[debug] CLI Version: 3.6.1
[debug] Platform: win32
[debug] Node Version: v7.8.0
[debug] Time: Mon Apr 17 2017 13:35:27 GMT+0900 (๋ํ๋ฏผ๊ตญ ํ์ค์)
[debug] ----------------------------------------------------------------------
[debug]
[debug] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token { refresh_token: '1/cLqub4wdfbPJfm6Rswlzb8L2uA7zXG1SrmTLx17kZ1w',
client_id: '563584335869-fgrhgmd47bqne........................apps.googleusercontent.com',
client_secret: 'j9iVZfS8kkCEFU.........',
grant_type: 'refresh_token',
scope: 'email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid' }
Mon Apr 17 2017 13:35:27 GMT+0900 (๋ํ๋ฏผ๊ตญ ํ์ค์)
[debug] <<< HTTP RESPONSE 200
[debug] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/sample-b36e9
Mon Apr 17 2017 13:35:29 GMT+0900 (๋ํ๋ฏผ๊ตญ ํ์ค์)
[debug] <<< HTTP RESPONSE 200
[debug] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/sample-b36e9/tokens
Mon Apr 17 2017 13:35:30 GMT+0900 (๋ํ๋ฏผ๊ตญ ํ์ค์)
[debug] <<< HTTP RESPONSE 200
@tingxins ์๋ ํ์ธ์, ์๋ ๋ช ๋ น ํ์ ์๋ ํ์ต๋๊น?
set "NODE_TLS_REJECT_UNAUTHORIZED=0"
Firebase ๊ฐ๋ฐ์๋์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ญ์์ค. ์ฌ๊ฐํ ๊ฐ๋ฐ ์ง์ฐ์ ๋๋ค.
์ ์ง๊ธ๊น์ง ํด๊ฒฐ๋์ง ์์์ต๋๊น?
1 ๋
์์ง๋ ์ผ์ด๋๊ณ ๊ณ์ ๊ท์ฐฎ๊ฒ ... ์ค๊ตญ์ ์๊ธฐ ๋๋ฌธ์ ํ์ด์ด๋ฒ ์ด์ค๋ฅผ ํฌ๊ธฐํ ์ง๋ ...
๊ฐ์ ๋ฌธ์ ...
๊ฐ์ ๋ฌธ์
๊ฐ์ ๋ฌธ์ ...
๊ฐ์ ๋ฌธ์ ์
๋๋ค.
3 ๊ฐ์ ๋์ ์ง์์ ๋ฐ์ผ๋ฉด ๋์์ด๋์ง ์์ต๋๋ค.
๋ง์นจ๋ด ํ๋ก์๊ฐ ์์ด์ผํ๋ CovenantEyes๋ฅผ ์ ๊ฑฐํ๋ ์์ด๋์ด๋ฅผ ์ป์์ต๋๋ค.
๊ทธ๋์ ๋ก๊ทธ์ธ์ด ์๋ํ์ง ์์์ต๋๋ค.
์ด ๋ฌธ์ ๋ฅผ ์ผ์ผํค๋ ์ฑ์ด ๋ง์ ๊ฒ ๊ฐ์ต๋๋ค.
๋๋์ด ์ฐํ!
Shadowsocks ํ๋ก์ ์ฌ์ฉ์ (Windows 10 Pro)๋ฅผ ์ํด ์๋ํ๋ ํ ๊ฐ์ง ๊ฐ๋ฅํ ์๋ฃจ์ ์ ์ฐพ์์ต๋๋ค.
1, Shadowsocks PAC ๋ชจ๋์์ "firebase logout"์ ์คํํฉ๋๋ค.
2, Shadowsocks PAC ๋ชจ๋์์ "firebase login"์ ์คํํฉ๋๋ค.
3, Shadowsocks Global Mode (๋ชจ๋ ์์ฒญ์ ์๊ฒฉ ์๋น์ค๋ก ๋ฆฌ๋๋ ์ )๋ก ์ ํํฉ๋๋ค.
4, "firebase list"๋ฅผ ์๋ํ์ฌ ์ธ์ฆ ์ค๋ฅ๊ฐ ๋ํ๋๋์ง ํ์ธํฉ๋๋ค.
์ด๊ฒ์ ๋๋ฅผ ์ํด ์๋ํ์ง๋ง ๊ทธ๊ฒ์ด ๋น์ ์๊ฒ ๋์์ด๋๋์ง ์ฌ๋ถ๋ ํ์คํ์ง ์์ต๋๋ค. ์๋ํ ๋งํ ๊ฐ์น๊ฐ ์์ต๋๋ค.
์ด ์ํ !!!
@WbTOne ์ด๋ฏธ ์๋ํ์ต๋๋ค. ์ ๊ฒฝ์ฐ์๋ ์๋ํ์ง ์์์ต๋๋ค.
์ฌ์ ํ ์๋ํ์ง ์์ต๋๋ค
Firebase์ ์๋ฃจ์ ์ ์ฌ๊ฐ
์ด๋ด, ์์ธต ํ์ , ์์ด ํ ์ค ์์?
๊ณต์์ ์ธ ํด๊ฒฐ์ฑ ์ ๊ธฐ๋ค๋ฆฌ๋ ์ค ...์ด ๋ฌธ์ ์ ์ฐ์ ์์๋ ์ค์ํฉ๋๋ค.
๋๋ฒ๊น ์ ํ ๋ ํ์ด์ ๋น๋๋ค. ๋ก๊ทธ์ธ ์ฌ ์๋์ ์ง์ณค์ต๋๋ค. ์ด๋ก ์ธํด ํ๋ก์ ํธ๊ฐ ์ฌ๊ฐํ๊ฒ ์ง์ฐ๋์์ต๋๋ค. ์ง๊ธ ๋ด ์๋ฒ๋ฅผ ๊ตฌ์ถํด์ผํฉ๋๋ค.
๋์๊ฒ๋ Chrome์ ์์ ํ ์ข ๋ฃํ๊ณ ๋ค์ ์ด๋ฉด ๋ค์ ์๋ํฉ๋๋ค.
๋๋ ์ด๊ฒ์ด ๊ฑฐ์ 1 ๋ ๋ฐ ๋์ ๊ณ ์ณ์ง์ง ์์๋ค๋ ๊ฒ์ ์ง์งํ๊ฒ ๋ฏฟ์ ์ ์๋ค.
์ค๊ตญ์ ์ด๊ณ ์๋ ์๋๋ก์ด๋ ๊ฐ๋ฐ์๋ผ๋ฉด ์ธ์ ๋ ๊ทธ๋ ์ต๋๋ค.
Google Play๊ฐ ์ธ์ ๊ฐ ๋ค์ ๋์ ์ค๊ธธ ๋ฐ๋๋๋ค.
๋๋ ๋ฌธ์ ๊ฐ ์๋ค๊ณ ๋งํ๊ณ ์ถ์์ด
๊ทธ๋ฆฌ๊ณ ์ด๊ฒ์ firebase-debug์
๋๋ค.
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.778Z] ----------------------------------- -----------------------------------
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.780Z] ๋ช
๋ น : C : \ Program Files \ nodejs \ node.exe C : \ Users \ Hamidreza \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ bin \ firebase ๋ช
๋ถ
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.781Z] CLI ๋ฒ์ : 3.13.1
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.781Z] ํ๋ซํผ : win32
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.781Z] ๋
ธ๋ ๋ฒ์ : v6.11.4
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.781Z] ์๊ฐ : 2017 ๋
10 ์ 9 ์ผ ์์์ผ 21:16:10 GMT + 0330 (์ด๋ ํ์ค์)
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.781Z] ----------------------------------- -----------------------------------
[๋๋ฒ๊ทธ]
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.794Z]> ๋ช
๋ น์๋ ๋ฒ์๊ฐ ํ์ํฉ๋๋ค : [ "email", "openid", "https://www.googleapis.com/auth/cloudplatformprojects.readonly", "https : //www.googleapis.com/auth/firebase "]
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.795Z]> ๋ก๊ทธ์ธ ํ ์ฌ์ฉ์๋ฅผ ํตํด ์ธ์ฆ
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.797Z]> ๋ฒ์๊ฐ์๋ ์ก์ธ์ค ํ ํฐ ์๋ก ๊ณ ์นจ : [ "email", "https://www.googleapis.com/auth/cloudplatformprojects.readonly", "https : // www.googleapis.com/auth/firebase","openid "]
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 10.797Z] >>> HTTP ์์ฒญ ๊ฒ์๋ฌผ https://www.googleapis.com/oauth2/v3/token {refresh_token : '1 / OU1dLTZhJUpNdtDzicGy1xtthchW9wu84awgkUkEmGU',
client_id : '563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com',
client_secret : 'j9iVZfS8kkCEFUPaAeJV0sAi',
grant_type : 'refresh_token',
๋ฒ์ : 'email https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid'}
2017 ๋
10 ์ 9 ์ผ ์์์ผ 21:16:10 GMT + 0330 (์ด๋ ํ์ค์)
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 11.815Z] <<< HTTP RESPONSE 200
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 11.829Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects
2017 ๋
10 ์ 9 ์ผ ์์์ผ 21:16:11 GMT + 0330 (์ด๋ ํ์ค์)
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 33.060Z] ์ค๋ฅ : ETIMEDOUT 104.197.85.31:443 ์ฐ๊ฒฐ
Object.exports._errnoException์์ (util.js : 1020 : 11)
exports._exceptionWithHostPort (util.js : 1043 : 20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js : 1090 : 14)
[์ค๋ฅ]
[์ค๋ฅ] ์ค๋ฅ : ์๋ฒ ์ค๋ฅ์
๋๋ค. ETIMEDOUT 104.197.85.31:443 ์ฐ๊ฒฐ
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 47.934Z] ----------------------------------- -----------------------------------
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 47.937Z] ๋ช
๋ น : C : \ Program Files \ nodejs \ node.exe C : \ Users \ Hamidreza \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ bin \ firebase ๋ช
๋ถ
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 47.937Z] CLI ๋ฒ์ : 3.13.1
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 47.937Z] ํ๋ซํผ : win32
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 47.937Z] ๋
ธ๋ ๋ฒ์ : v6.11.4
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 47.938Z] ์๊ฐ : 2017 ๋
10 ์ 9 ์ผ ์์์ผ 21:16:47 GMT + 0330 (์ด๋ ํ์ค์)
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 47.938Z] ----------------------------------- -----------------------------------
[๋๋ฒ๊ทธ]
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 47.951Z]> ๋ช
๋ น์๋ ๋ฒ์๊ฐ ํ์ํฉ๋๋ค : [ "email", "openid", "https://www.googleapis.com/auth/cloudplatformprojects.readonly", "https : //www.googleapis.com/auth/firebase "]
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 47.951Z]> ๋ก๊ทธ์ธ ํ ์ฌ์ฉ์๋ฅผ ํตํด ์ธ์ฆ
[๋๋ฒ๊ทธ] [2017-10-09T17 : 46 : 47.955Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects
2017 ๋
10 ์ 9 ์ผ ์์์ผ 21:16:47 GMT + 0330 (์ด๋ ํ์ค์)
[๋๋ฒ๊ทธ] [2017-10-09T17 : 47 : 09.030Z] ์ค๋ฅ : ETIMEDOUT ์ฐ๊ฒฐ 104.197.85.31:443
Object.exports._errnoException์์ (util.js : 1020 : 11)
exports._exceptionWithHostPort (util.js : 1043 : 20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js : 1090 : 14)
[์ค๋ฅ]
[์ค๋ฅ] ์ค๋ฅ : ์๋ฒ ์ค๋ฅ์
๋๋ค. ETIMEDOUT 104.197.85.31:443 ์ฐ๊ฒฐ
๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. ํด๊ฒฐํด์ฃผ์ธ์!
๊ฐ์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ญ์์ค. ํ๋ก์๋ฅผ ์ฌ์ฉํ ๋ firebase์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
์ฌ๊ธฐ์๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
์ง์ ๋ฐฐ์นํด์ผํ๋๋ฐ ... : D
๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. ํด๊ฒฐํด์ฃผ์ธ์!
๋ผ์ฐํฐ์์ ํ๋ก์๋ฅผ ์ฌ์ฉํฉ๋๋ค. (Shadowsocks)
๋ด ์ปดํจํฐ๊ฐ์ด ๋ผ์ฐํฐ์ ์ฐ๊ฒฐ๋์ด ์์ต๋๋ค.
Android Studio ๋ก๊ทธ์ธ Google ๊ณ์ ๋ ์ฌ์ฉํ ์ ์์ต๋๋ค.
์ด P2 ๋ฒ๊ทธ๋ 1 ๋ ๋ฐ ๋์ ์ง์๋ฉ๋๋ค.
๋๋ ์ฌ๊ธฐ์ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค :(
์ฌ๊ธฐ์์ ๊ฐ์ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ต๋๋ค.
์ด๊ฒ์ ๋๋ฅผ ์ํด ์ผํ์ต๋๋ค!
"NODE_TLS_REJECT_UNAUTHORIZED = 0"์ค์
๋๋ฌด ๋ฐฐํฌ ํ ์ ์์ต๋๋ค
[debug] [2017-10-31T15:00:41.884Z] ----------------------------------------------------------------------
[debug] [2017-10-31T15:00:41.884Z] Command: C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\firebase-tools\bin\firebase deploy
[debug] [2017-10-31T15:00:41.884Z] CLI Version: 3.14.0
[debug] [2017-10-31T15:00:41.884Z] Platform: win32
[debug] [2017-10-31T15:00:41.884Z] Node Version: v6.11.4
[debug] [2017-10-31T15:00:41.884Z] Time: Tue Oct 31 2017 13:00:41 GMT-0200 (Horรกrio brasileiro de verรฃo)
[debug] [2017-10-31T15:00:41.884Z] ----------------------------------------------------------------------
[debug]
[debug] [2017-10-31T15:00:41.904Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2017-10-31T15:00:41.904Z] > authorizing via signed-in user
[debug] [2017-10-31T15:00:41.904Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2017-10-31T15:00:41.904Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token { refresh_token: '1/*************************************************************************************',
client_id: '*************************************************************.com',
client_secret: '*******************************',
grant_type: 'refresh_token',
scope: 'email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid' }
Tue Oct 31 2017 13:00:41 GMT-0200 (Horรกrio brasileiro de verรฃo)
[debug] [2017-10-31T15:00:42.285Z] <<< HTTP RESPONSE 200
[debug] [2017-10-31T15:00:42.315Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/where2party-51f6a
Tue Oct 31 2017 13:00:42 GMT-0200 (Horรกrio brasileiro de verรฃo)
[debug] [2017-10-31T15:00:43.194Z] <<< HTTP RESPONSE 200
[debug] [2017-10-31T15:00:43.194Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/where2party-51f6a/tokens
Tue Oct 31 2017 13:00:43 GMT-0200 (Horรกrio brasileiro de verรฃo)
[debug] [2017-10-31T15:00:44.238Z] <<< HTTP RESPONSE 200
์ด๊ฒ์ด ์๋ํ๋์ง ํ์ธ
ํ์ธ ๋ ์์ ์๋ฃจ์ :
request
์ํด ์ฌ์ ํ ํ์ํ๊ณ ์กด์ค๋๊ณ ์์ผ๋ฏ๋ก env var http_proxy
request
faye-websocket/lib/faye/websocket/client.js
:...
var Client = function(_url, protocols, options) {
options = options || {};
options.proxy = {
origin: 'http://localhost:1087',
}
...
NODE_TLS_REJECT_UNAUTHORIZED=0
p2
์ ๊ฐ์ ๋ฌธ์ ๋ ์ด๋ธ์ ์ ๋ขฐํ์ง ๋ง์ญ์์ค.@namiwang ์ ๋๋ฅผ ์ํด ์๋ํ์ง ์์ต๋๋ค :(
๊ฐ์ฅ ํฐ ์ฐจ์ด์ ์ ์ฌ์ฉ์ / ์ํธ๋ฅผ ์ฌ์ฉํ๋ค๋ ๊ฒ์ ๋๋ค.
var Client = function(_url, protocols, options) {
options = options || {};
options.proxy = {
origin: 'http://user:[email protected]:port',
}
๊ทธ๋ฆฌ๊ณ set NODE_TLS_REJECT_UNAUTHORIZED=0
์ด๋ผ๊ณ ๋งํ๋ฉด Linux์ ๋ช
๋ น์ export NODE_TLS_REJECT_UNAUTHORIZED=0
.
์ด๊ฒ์ ๊ณ ์น๊ธฐ ์ฌ์ด ์ผ์ด ๋ ๊ฒ ๊ฐ์ต๋๋ค. ํฐ ์๊ฐ์ ๋๋ฆฌ๊ฒ ....
Firebase ๋ก๊ทธ์ธ์ ํ์ฌ ๋
ธํธ๋ถ์์ ์๋ํ์ง ์์ผ๋ฉฐ Windows์์๋ง ์๋ํฉ๋๋ค.
Firebase : 3.16.0
Npm : 5.3.0
Windows : 7, x64
ํ๋ก์ : http://proxy.XXXXXXX.com : 80
๋ด ์ง ๋
ธํธ๋ถ์์ ์ค์นํ๊ณ ๋ก๊ทธ์ธํ๋ ค๊ณ ์๋ํ์ง๋ง ์๋ํ์ต๋๋ค.
Windows : 10, x64
์ฐ๋ฆฌ๋ ํ์ฌ ํ๋ก์๋ฅผ ๊ฐ์ง๊ณ ์์ง๋ง ์ด๋ค ์ด์ ๋ก Windows๊ฐ ์ค์น๋ ๋ฉํฑ์์๋ง ๋ฌธ์ ๊ฐ๋๊ณ MacOS๊ฐ์๋ ํ์ฌ ๋ฉํฑ์ ์ฌ์ฉํด ๋ณด์๊ณ "firebase ๋ก๊ทธ์ธ"์ด ์ ๋๋ก ์๋ ํฉ๋๋ค.
๋ธ๋ผ์ฐ์ ์๋ ํ์ผ์ ์ผ๋ถ ์ค๋ฅ ์ฒ๋ฆฌ๊ธฐ๋ฅผ ๋นํ์ฑํํ๋ฉด URL http : // localhost : 9005๋ฅผ ์ฌ์ฉํ ์ ์๋ค๊ณ ํ์๋๋ฏ๋ก ๋๋ถ๋ถ์ ๊ฒฝ์ฐ ํ๋ก์๊ฐ ์๋๋ผ ์ผ๋ถ ํฌํธ๊ฐ Windows ๋ฐฉํ๋ฒฝ์ ์ํด ๋ซํ๋๋ค .
C : ์ฌ์ฉ์
๋๋ฒ๊ทธ ์ ๋ณด
https://i.imgur.com/lslydoN.png
์ต์ ์ ๋ณด. ๋ก๊ทธ์ธ์ด ์๋ํ๋๋กํ์ต๋๋ค.
1) Git Bash ๋๋ Linux์ ์ ์ฌํ ๋ช
๋ น ์ค ๋๊ตฌ ์คํ
2)์ด ๋ช
๋ น์ ์คํํ๊ณ ๋์ ํ๋ก์๋ก ๋์ฒดํ์ญ์์ค.
export HTTP_PROXY = " http://proxy.XXXXXXXX.com : 80 /"
export HTTPS_PROXY = " http://proxy.XXXXXXXX.com : 80 /"
3)์ด ํ ๋๋ ๋ค์์ ์ฌ์ฉํ์ฌ ๋ก๊ทธ์ธ ํ ์ ์์๋ค.
firebase ๋ก๊ทธ์ธ-๋ํ ํ
4) ์ ์ฉํ ๋งํฌ
https://github.com/firebase/firebase-tools/issues/36#issuecomment -66696746
https://www.npmjs.com/package/request#controlling -proxy-behaviour-using-environment-variables
"firebase ๋ฐฐํฌ"์ ๊ดํด์๋ ์ฌ์ ํ์ด ๋ฌธ์ ๊ฐ ์์ต๋๋ค. ์ค๋ฅ๊ฐ ์์ผ๋ฉฐ ์ค๋จ๋ฉ๋๋ค.
ํ๋ก์ ๋ค์์ ์คํํ๊ณ ์์ง ์์ง๋ง์ด ๋ฌธ์ ๊ฐ ๋ํ๋ฉ๋๋ค. ์ฝ๋๋ฅผ ๋ฐฐํฌํ๋ ๋์ ๋ค์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
** ์ค๋ฅ : ์๋ฒ ์ค๋ฅ. ETIMEDOUT 172.217.31.202:443 ์ฐ๊ฒฐ
๊ทธ๋์ "firebase login --reauth"๋ฅผ ์ํํ๊ณ ์ฌ๋ฐ๋ฅธ ์๊ฒฉ ์ฆ๋ช
์ ์ ๊ณตํ์ง๋ง "firebase list"๋ฅผ ์คํํ์ ๋ ์ฑ๊ณต์ ์ผ๋ก ๋ก๊ทธ์ธํ์ง๋ง ๋ค์ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.
** ์ค๋ฅ : ์ธ์ฆ ์ค๋ฅ : ์๊ฒฉ ์ฆ๋ช
์ด ๋ ์ด์ ์ ํจํ์ง ์์ต๋๋ค. firebase login --reauth๋ฅผ ์คํํ์ธ์.
๊ทธ๋ฐ ๋ค์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด ๋ค์ ๋จ๊ณ๋ฅผ ๋ฐ๋์ต๋๋ค.
firebase ๋ก๊ทธ ์์
firebase ๋ก๊ทธ์ธ-> ์ฑ๊ณต์ ์ธ ๋ก๊ทธ์ธ
firebase ๋ชฉ๋ก-> ๋ด ์ฑ์ ๋ณผ ์ ์์ต๋๋ค.
firebase deploy-> ์ฝ๋๋ฅผ ์ฑ๊ณต์ ์ผ๋ก ๋ฐฐํฌ ํ ์ ์์ต๋๋ค.
ํธํ ์ธํฐ๋ท์์ ์ผํ ๋ ๋๋ฅผ ์ํด ์์ต๋๋ค ...
๋ด ๋ ธํธ๋ถ โโ์์ ์์ ๊ฐ์ ์ค๋ฅ์ ์ง๋ฉดํ๊ณ ๊ณ์ ๋ฐ๋ณต๋ฉ๋๋ค.
์ ๋ ๋ง์ฐฌ๊ฐ์ง์
๋๋ค. ๊ฝค ์ฌํ ๋ฐฐํฌ๊ฐ ํ๋ก์ ๋ค์์ ์๋ํ์ง ์์ต๋๋ค.
Firebase ๋๊ตฌ๋ ์ฌ์ ํ ํ๋ฅญํฉ๋๋ค.
SSH๋ฅผ ํตํด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํฉ๋๋ค.
VPS๊ฐ ์์ผ๋ฏ๋ก ํ๋ก์ ํธ๋ฅผ ๋ณต์ ํ๊ณ Firebase์ ๋ก๊ทธ์ธํฉ๋๋ค.
์ ๊ธฐ๋ฅ์ ๋ฐฐํฌํด์ผํ๋ฉด SSH๋ฅผ ํตํด ์๊ฒฉ ์คํฌ๋ฆฝํธ๋ฅผ ํธ์ถํ๋ฉด๋ฉ๋๋ค.
๋ค์์ ๋ช ๊ฐ์ง ์คํฌ๋ฆฝํธ์ ๋๋ค.
๋ก์ปฌ์์ deployFunctionsRemote.sh
#!/usr/bin/env bash
# funDir point to your functions directory
funDir=${PROJECT}/functions
# Using rsync cmd to upload local changes to the remote project
# Excluding node_modules directory is recommend
cmdLine="rsync -avzPr --rsh='ssh -p ${REMOTE_PORT}' --exclude=node_modules ${funDir} ${REMOTE_USR}@${REMOTE_IP}:${REMOTE_PROJECT}"
eval ${cmdLine}
# Invoke remote deploy script
remoteDeployScript=${REMOTE_PROJECT}/deployFunctions.sh
ssh -p ${REMOTE_PORT} ${REMOTE_USR}@${REMOTE_IP} "${remoteDeployScript}"
์๊ฒฉ์ deployFunctions.sh
#!/usr/bin/env bash
firebase deploy --only functions
๊ฐ์ ๋ฌธ์ :(
์ฌ๊ธฐ๋ ๋ง์ฐฌ๊ฐ์ง
๋ด ๋ชจ๋ฐ์ผ ๋คํธ์ํฌ๋ฅผ ๊ณต์ ํ์ฌ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค ...
LOL, 2 ๋ ๋ก๊ทธ์ธ์ด ์๋ํ์ง ์์์ต๋๋ค.
firebase login
๋ firebase ๋๊ตฌ์ ํ๋ก์ ์ต์
์ด ํ์ํฉ๋๋ค.
https://github.com/firebase/firebase-tools/issues/155#issuecomment -349345985
๋๋ฅผ ์ํด ์๋ํฉ๋๋ค.
์ฝ์์ ์ด๊ณ ํ์ฌ์ ํ๋ก์ ์ต์
์ด์๋ export
๋ณ์๋ฅผ ์
๋ ฅํฉ๋๋ค.
firebase login --no-localhost
๋ธ๋ผ์ฐ์ ๋ฅผ ์ด๊ณ Google์ ํตํด ๋ก๊ทธ์ธํ๊ณ ํ ํฐ์ ๋ณต์ฌํ์ฌ ์ฝ์์ ๋ฃ์ต๋๋ค.
๊ทธ๋ฆฌ๊ณ ์ผ!)
ํธ์คํ
์ ๋ฐฐํฌํ๋ ๊ฒ์ ์ ์ธํ ๋ชจ๋ ๊ฒ์ ๋ค์์ ํตํด ํ๋ก์ ๋ค์์ ์๋ํด์ผํฉ๋๋ค.
ํ๊ฒฝ ๋ณ์ ์ค์ . ๊ทธ๋ ์ง ์์ ๊ฒฝ์ฐ
์์ธํ ๋ณด๊ณ ์.
2018 ๋
1 ์ 28 ์ผ ์ผ์์ผ ์คํ 12:54 Sergey S. Volkov [email protected]
์ผ๋ค :
155 (์ฝ๋ฉํธ)
https://github.com/firebase/firebase-tools/issues/155#issuecomment-349345985
๋๋ฅผ ์ํด ์๋ํฉ๋๋ค.
์ฝ์์ ์ด๊ณ ๋ด ํ์ฌ์ ํ๋ก์ ์ต์ ๊ณผ ํจ๊ป ๋ด๋ณด๋ด๊ธฐ ๋ณ์๋ฅผ ์ ๋ ฅํ์ญ์์ค.
๊ทธ๋ฆฌ๊ณ firebase login --no-localhost๋ฅผ ์ ๋ ฅํ์ญ์์ค.
๋ธ๋ผ์ฐ์ ๋ฅผ ์ด๊ณ Google์ ํตํด ๋ก๊ทธ์ธํ๊ณ ํ ํฐ์ ๋ณต์ฌํ์ฌ ์ฝ์์ ๋ฃ์ต๋๋ค.
๊ทธ๋ฆฌ๊ณ ์ผ!)โ
๋น์ ์ด ์ธ๊ธ ๋์๊ธฐ ๋๋ฌธ์ ์ด๊ฒ์ ๋ฐ๊ณ ์์ต๋๋ค.
์ด ์ด๋ฉ์ผ์ ์ง์ ๋ต์ฅํ๊ณ GitHub์์ ํ์ธํ์ธ์.
https://github.com/firebase/firebase-tools/issues/155#issuecomment-361095081 ,
๋๋ ์ค๋ ๋ ์์๊ฑฐ
https://github.com/notifications/unsubscribe-auth/AAAD_kJ7g2hTyHtLlfnTUK3VCUxY046Iks5tPN6OgaJpZM4InPdh
.
HTTP_PROXY๋ฅผ ์ค์ ํ๊ณ ํ๋ก์ URL์ ์ธ์ฆ์ ์ ๊ณตํ๋ฉด ์๋ฒ ์ค๋ฅ๊ฐ ๋ฐํ๋ฉ๋๋ค. ํฐ๋๋ง ์์ผ์ ์ค์ ํ ์ ์์ต๋๋ค. statusCode = 407 ์ค๋ฅ
์ข์, ๋ด๊ฐ ์ ์ ์ค๋ช ํ @namiwang ๊ณผ ๊ฐ์ ๊ฒ์ ๊ด๋ฆฌํฉ๋๋ค.
๋ค์์ ๋ด๊ฐ ์ฌ์ฉํ๋ ๋ฒ์ ์ ๋ํ ์ ๋ณด์
๋๋ค.
๋
ธ๋ : 7.5.0
npm : 4.1.2
firebase : 3.13.1
firebase-tools๋ ์ ์ญ ์ ์ผ๋ก ์ค์น๋๋ฏ๋ก firebase-tools๊ฐ ์ค์น๋ ํ๋ก์ ์ค์ ์ ์์ ํด์ผํฉ๋๋ค.
์ ๊ฒฝ์ฐ์๋ ~ / .nvm / versions / node / v7.5.0 / lib / node_modules / firebase-tools
1) ~ / .nvm / versions / node / v7.5.0 / lib / node_modules / firebase-tools / node_modules / firebase / node_modules / faye-websocket / lib / faye / websocket / client.js ํ์ผ์ ์ฝ๋ ๋ค.
2) ๋ผ์ธ ์์
options = options || {};
this.url = _url;
...์
options = options || {};
options.proxy = {
origin: 'http://user:[email protected]:3128',
headers: {'User-Agent': 'node'},
};
this.url = _url;
3) ํ๋ก์ ํธ๋ก ์ด๋ ํ ๋ค์ firebase ๋ช ๋ น์ ์คํํ์ฌ ๋ฐฐํฌํฉ๋๋ค.
cd ~/workspace/myProject/functions
firebase deploy --only functions
๋ฉ์๋. ๊ทธ๋๋ ์ด๋ ๊ฒ ํ ์ ์์๊น์?
if (process.env.HTTP_SERVER) {
options.proxy = {
origin: process.env.HTTP_SERVER,
headers: { 'User-Agent': 'node' }
};
}
@namiwang ์๊ฒ ๋์์ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. ๊ทธ๊ฒ์ ๋๋ฅผ ์ํด ์ผํ์ต๋๋ค ...
"๋ฐฐํฌ ์ค๋จ"์ ์ฌ์ ํ โโ๋ฌธ์ ์ด๋ฉฐ ํ๋ก์ ํ๊ฒฝ ๋ณ์ ์ค์ ์ ์์ ํ ์ ์์ต๋๋ค. ์ด์ ๋ํ ํด๊ฒฐ์ฑ ์ด ์์ต๋๊น?
๋ฐ์ ๋ค์ผ ์ ์์ต๋๋ค. 2 ๋ ํ์๋์ด ๋ฌธ์ ๋ ์ฌ์ ํ ํด๊ฒฐ๋์ง ์์ต๋๊น? wth?
@LastStranger https://github.com/firebase/firebase-tools/issues/155#issuecomment -349345985
ํ์ง๋ง firebase login --no-localhost
no-localhost ํ๋๊ทธ๋ฅผ ์ฌ์ฉํฉ๋๋ค.
@ js2me export HTTPS_PROXY = " http://proxy.XXXXXXXX.com : 80 /"๏ผ๏ผ๏ผ powershell๊ณผ cmd์์ ์ด๊ฒ์ ์คํํ๋ ค๊ณ ํ์ง๋ง "export"๋ฅผ ๋ค์ ์ฌ์ฉํ ์์๋ ๊ฒ ๊ฐ์ต๋๋ค.
@LastStranger ํ , ์ด์ํฉ๋๋ค. git bash์์ ์ด๊ฒ์ ์๋ํฉ๋๊น?
Windows์์ NODE_TLS_REJECT_UNAUTHORIZED=0
์ค์ ํ๋ ๋ฐฉ๋ฒ
๋ด๋ถ์์ ์ผํ๊ณ GFW ์ธ๋ถ์์ ์ด๊ณ ์ถ์ ์ฌ๋์ ์ํด ๋ด ์๋ฃจ์ ์ ๊ณต์ ํ์ญ์์ค.
ํ๊ฒฝ : shadowsocks-ng๊ฐ์๋ MacOS
~ / .bash_profile
alias cbrew="ALL_PROXY=socks5://127.0.0.1:1086 brew"
# using polipo
alias cfirebase="http_proxy=http://127.0.0.1:8123 firebase"
# your shadowsocks may already have http proxy feature
alias cfirebase="http_proxy=http://127.0.0.1:1087 firebase"
polipo http ํ๋ก์ ์ค์ (์ ํ ์ฌํญ)
cbrew install polipo
polipo socksParentProxy=localhost:1086 &
๋ก๊ทธ์ธ
cfirebase login --debug
ํด๋ฆฌ ํ ํ์ด ์น ์์ผ
๊ฐ์ฌํฉ๋๋ค @namiwang ์๋ํฉ๋๋ค.
firebase sdk 2.xx๊ฐ ์ถ์ ๋์๊ธฐ ๋๋ฌธ์ polyfill faye-websocket์ด sdk๋ฅผ ์์ ํ๋ ๊ฒ๋ณด๋ค ์ฝ์ต๋๋ค.
// if you installed node by brew, the path would be /usr/local/lib/node_modules/firebase-tools/node_modules/firebase/node_modules/faye-websocket/lib/faye/websocket/client.js
...
var proxy_uri = process.env.http_proxy
if (proxy_uri) {
options.proxy = { origin: proxy_uri }
}
...
์ ๊ฐ
cfirebase deploy --only functions --debug
์ค์ ๋ก ์ต์ firebase sdk๋ ์ด๋ฏธ ๋ฒ๊ทธ๋ฅผ ์์ ํ์ต๋๋ค. firebase-tools๊ฐ ํ์ฌ๊น์ง deps๋ฅผ ๊ธฐ๋ค๋ฆฌ๋ ์ค ...
2018 ๋ ์ด์ง๋ง ์์ง ๊ณ ์ณ์ง์ง ์๊ณ ์ ์งํ์ง ์๋ ๊ฒ์ฒ๋ผ ๋ณด์ ๋๋ค.
์๋ํ์ง
๋ถํธํ๊ณ ์์ง ํด๊ฒฐ๋์ง ์์๋๋ฐ-?
์๋ ํ์ธ์.
๋ด ๋ชจ๋ฐ์ผ ๋คํธ์ํฌ๋ฅผ ๊ณต์ ํ์ฌ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค ...
์ด๊ฒ์ ๋ํ "๋ฐฐํฌ ๊ธฐ๋ฅ"๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค.
Google์ Google์ ๋๋ค. ํด๊ฒฐ๋์ง ์์ ๋ ๋ค๋ฅธ ์ค์ํ ๋ฒ๊ทธ์ ๋๋ค.
์ค๊ตญ์ด๋ก Google์ ์ก์ธ์คํด์ผํ๋ ๊ฒฝ์ฐ ํ๋ก์๋ฅผ ์ฌ์ฉํด์ผํฉ๋๋ค !!! GWF๋ก ์ธํด
ํ ๊ฐ์ง ํด๊ฒฐ์ฑ ์ ๋ค๋ฅธ ๊ตญ๊ฐ๋ก ์ด๋ํ๋ ๊ฒ์ ๋๋ค ๐
์ด๊ฒ์ CI ๋ฐฐํฌ์๋ ์ ์ฉํฉ๋๋ค.
๊ทธ๋์ ํ์ด์ด๋ฒ ์ด์ค ์ฌ์ฉ์ ํฌ๊ธฐํด์ผํ๋์? ์ค๊ตญ์์๋ ํ๋ก์๊ฐ ์์ผ๋ฉด Google์์๋ ๊ฒ์ ํ ์ ์์ต๋๋ค. ํฌ๋ฆฌ์คํ ์ผ์ดํฌ๋ฅผ ๋ณธ ๊ฒ์ฒ๋ผ ๋จน์ ์ ์์ต๋๋ค.
์ผ๋ถ ์ธํ๋ผ๊ฐ ์๋ ํ ๋์ด ๋ฌธ์ ์ ๋ํด ์ข์ ์์์ ์ ํ๊ณ ์ถ์ต๋๋ค
์ฐ๋ฆฌ๋ ์ง๊ธํ๊ณ ์์ต๋๋ค. ์ ๊ณต ํ ๊ตฌ์ฒด์ ์ธ ์ผ์ ์ด ์์ต๋๋ค.
ํ๋.
์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ๋ฐ ์ค๋ ์๊ฐ์ด ์ง์ฐ๋์ด ์ฃ์กํฉ๋๋ค.
์๊ฐ๋ณด๋ค ๋ณต์กํฉ๋๋ค.
2018 ๋ 6 ์ 29 ์ผ ๊ธ์์ผ ์ค์ 1:12 noobhui [email protected] ์์ฑ :
๊ทธ๋์ ํ์ด์ด๋ฒ ์ด์ค ์ฌ์ฉ์ ํฌ๊ธฐํด์ผํ๋์? ์ค๊ตญ์์๋ ํ๋ก์ ์์ด๋ ํ ์ ์์ต๋๋ค
Google์์๋ ๊ฒ์ ํ ์ ์์ต๋๋ค. ํฌ๋ฆฌ์คํ ์ผ์ดํฌ๋ฅผ ๋ณธ ๊ฒ์ฒ๋ผ ๋จน์ ์ ์์ต๋๋ค.โ
๋น์ ์ด ์ธ๊ธ ๋์๊ธฐ ๋๋ฌธ์ ์ด๊ฒ์ ๋ฐ๊ณ ์์ต๋๋ค.
์ด ์ด๋ฉ์ผ์ ์ง์ ๋ต์ฅํ๊ณ GitHub์์ ํ์ธํ์ธ์.
https://github.com/firebase/firebase-tools/issues/155#issuecomment-401282471 ,
๋๋ ์ค๋ ๋ ์์๊ฑฐ
https://github.com/notifications/unsubscribe-auth/AAAD_hDs8s1zUkv3-8QFYSxcvCFrNFs2ks5uBeFagaJpZM4InPdh
.
๋ด๊ฐ ์๋ ํ, a patched firebase sdk v2
๋ง ํ์ํ๋ฉฐ env.http_proxy๋ฅผ ๋ชจ๋ faye-websocket ๋๋ up sdk to date (v4)
์ ๋ฌํ ์ ์์ต๋๋ค.
์ฐ๋ฆฌ๊ฐ ์๊ฐํ๋ ๊ฒ๋ณด๋ค ํจ์ฌ ๋ ๋ณต์กํ ์ด์ ๋ฅผ ์๋ ค์ฃผ์๊ฒ ์ต๋๊น?
์ฐ๋ฆฌ๊ฐ ๋์ธ ์์์ ๊ฒ์
๋๋ค.
๊ฐ์ฌ.
Windows์์ ๋ฌธ์ ๊ฐ์๋ ์ฌ๋๋ค์ ์ํด : ์ด ์ฃผ์์ Linux์์ ์๋ํ์ง๋ง ( export
์ Linux ๋ช
๋ น์
๋๋ค) Windows์์ ์๋ํ๋๋ก ๊ด๋ฆฌ ํ ์ โโ์์ต๋๋ค.
๊ฐ๋จํ ์ฝ์ ์๋ฎฌ๋ ์ดํฐ ์ธ Cmder ๋ฅผ ์ค์นํ์ฌ ์์ํ์ญ์์ค. ๋ค์์ผ๋ก bash ์ ธ์ ์คํํด์ผํฉ๋๋ค (powershell์ด โโ์๋๋ผ cmd ์ ธ, bash ์ ธ).
bash ์ ธ์ด ๋ง๋ค์ด์ง๋ฉด ์ค์ ๋ก ๋ค์ ๋ ๋ช ๋ น์ ์คํํ ์ ์์ต๋๋ค.
export HTTP_PROXY="your proxy"
export HTTPS_PROXY="your proxy"
Windows ํ๋ก์๋ฅผ ์ค์ ํ ๊ฒ์
๋๋ค (์ด๋ป๊ฒํ๋์ง ๋ชจ๋ฅด๊ฒ ์ต๋๋ค. ํ๊ฒฝ ๋ณ์ ๋๋ ์ธํฐ๋ท ์ต์
์์ ๋ฌด์์ํ๋์ง ์ฐพ์ง ๋ชปํ ๊ฒ ๊ฐ์ต๋๋ค). ์ด๋ก๋ถํฐ ๋ ์ด์ ๋ฌธ์ ์์ด firebase login
firebase๋ฅผ ๊ฐ๋จํ ์คํํ ์ ์์ต๋๋ค.
๋๋์ด ๋ฌธ์ ์ ๋ชจ๋ ์๋ฃจ์ ์ ์๋ํ์ต๋๋ค (๋ผ์ด๋ธ๋ฌ๋ฆฌ ์์ ์ ์ ์ธํ๊ณ ๋๋ ์ผ๋ง์ธ์ด ์๋๋๋ค : D). ์ด๊ฒ์ด ๋๋ฅผ ์ํด ์ผํ ์ ์ผํ ์๋ฃจ์ ์ ๋๋ค. ์ด๊ฒ ๋์์ด ๋๊ธธ ๋ฐ๋๋ค !
๊ฐ์ ๋ฌธ์ ์ ์ง๋ฉด ... Google์ ์ธ์ ์ด๊ฒ์ ํด๊ฒฐํ ๊ฒ์ ๋๊น?
๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. firebase login
๋ก Firebase -CLI์ ๋ก๊ทธ์ธ ํ ๋ค์ ์ ์ ํ ํ๋ก์ ํธ๋ฅผ ์ ํํ๊ธฐ ์ํด ๋ช
๋ น ์ค์์ firebase use --add
๋ฅผ ์คํํ๋ ค๊ณ ํ๋๋ฐ์ด ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.
์ค๋ฅ : ์๋ฒ ์ค๋ฅ์ ๋๋ค. ETIMEDOUT 104.197.85.31:443 ์ฐ๊ฒฐ
์ด ์ค๋ฅ๋ก ํ๋ฅผ๋ ๋๋ค. ์ฐ๋ฆฌ๊ฐ ์ข ๊ณ ์น ์์์ ๋. firebase๋ก ํ๋ก์ ํธ๋ฅผ ์๋ฃ ํ ์ ์์ต๋๋ค.
๋์๊ฒ๋ ์๋ํ์ง ์์ต๋๋ค. ๋ง์ ์๋ฃจ์ ์ ์๋ํ์ง๋ง firebase๊ฐ ํ๋ก์๋ฅผ ์ฒ๋ฆฌ ํ ์ โโ์๋ค๋ ๊ฒ์ ๋ฏฟ์ ์ ์์ต๋๋ค.
1 ๋ ํ์๋ ์ฌ์ ํ ๋์ผํ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค. ๋๊ฐ ์ค๊ตญ ๋ฐฉํ๋ฒฝ์ด๋ Google Firebase๋ฅผ ๋น๋ํ ๊น์ ..,
`? Firebase๊ฐ ์ต๋ช ์ CLI ์ฌ์ฉ ๋ฐ ์ค๋ฅ๋ณด๊ณ ์ ๋ณด๋ฅผ ์์งํ๋๋ก ํ์ฉ ํ์๊ฒ ์ต๋๊น? (์ / ์๋์)
PS C : Usersmurugan_nagarajan> firebase ๋ก๊ทธ์ธ --debug
[2018-08-10T07 : 22 : 00.621Z] -------------------------------------- --------------------------------
[2018-08-10T07 : 22 : 00.626Z] ๋ช
๋ น : C : Program Filesnodejsnode.exe C : Usersmurugan_nagarajanAppDataRoamingnpmnode_modulesfirebase-toolsbinfirebase login --debug
[2018-08-10T07 : 22 : 00.627Z] CLI ๋ฒ์ : 4.0.3
[2018-08-10T07 : 22 : 00.627Z] ํ๋ซํผ : win32
[2018-08-10T07 : 22 : 00.627Z] ๋
ธ๋ ๋ฒ์ : v10.8.0
[2018-08-10T07 : 22 : 00.629Z] ์๊ฐ : 2018 ๋
8 ์ 10 ์ผ ๊ธ์์ผ 15:22:00 GMT + 0800 (์ค๊ตญ ํ์ค์)
[2018-08-10T07 : 22 : 00.630Z] -------------------------------------- --------------------------------
? Firebase๊ฐ ์ต๋ช ์ CLI ์ฌ์ฉ ๋ฐ ์ค๋ฅ๋ณด๊ณ ์ ๋ณด๋ฅผ ์์งํ๋๋ก ํ์ฉ ํ์๊ฒ ์ต๋๊น? ์๋
๋ก๊ทธ์ธํ๋ ค๋ฉด ๊ธฐ๊ธฐ์์ ๋ค์ URL์ ๋ฐฉ๋ฌธํ์ธ์.
https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcl
oudplatformprojects.readonly % 20https % 3A % 2F % 2F www.googleapis.com % 2Fauth % 2Ffirebase % 20https % 3A % 2F % 2Fwww.googleapis.com % 2Fauth % 2Fcloud-platform & response_type = code & state = 452226808 & redirect_uri = htt
p % 3A % 2F % 2Flocalhost % 3A9005
์ธ์ฆ ๋๊ธฐ ์ค ...
[2018-08-10T07 : 22 : 48.312Z] >>> HTTP ์์ฒญ ๊ฒ์ https://accounts.google.com/o/oauth2/token
{์ฝ๋ :
'4 / NwD80jRUIDzAwBxmuqqIQxaOPyLfiOUL1Yx5eKGKzqtnfk88q4anmyxTozeLKQEE9DOxPuMklrrc42teX491Kuw',
client_id :
'563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com',
client_secret : 'j9iVZfS8kkCEFUPaAeJV0sAi',
redirect_uri : ' http : // localhost : 9005',
grant_type : '์ธ์ฆ ์ฝ๋'}
2018 ๋
8 ์ 10 ์ผ ๊ธ์์ผ 15:22:48 GMT + 0800 (์ค๊ตญ ํ์ค์)
[2018-08-10T07 : 22 : 48.455Z] ํ ํฐ ๊ฐ์ ธ ์ค๊ธฐ ์ค๋ฅ : ์ค๋ฅ
์๋ก์ด FirebaseError (C : Usersmurugan_nagarajanAppDataRoamingnpmnode_modulesfirebase-toolsliberror.js : 11 : 16)
Request._callback์์ (C : Usersmurugan_nagarajanAppDataRoamingnpmnode_modulesfirebase-toolslibapi.js : 35 : 11)
self.callback (C : Usersmurugan_nagarajanAppDataRoamingnpmnode_modulesfirebase-toolsnode_modulesrequestrequest.js : 185 : 22)
Request.emit (events.js : 182 : 13)
Request.EventEmitter.emit (domain.js : 442 : 20)
Request.onRequestError (C : Usersmurugan_nagarajanAppDataRoamingnpmnode_modulesfirebase-toolsnode_modulesrequestrequest.js : 877 : 8)
ClientRequest.emit (events.js : 182 : 13)
ClientRequest.EventEmitter.emit (domain.js : 442 : 20)
TLSSocket.socketErrorListener (_http_client.js : 382 : 9)
TLSSocket.emit (events.js : 182 : 13)
^ C ๋ฐฐ์น ์์
์ ์ข
๋ฃ ํ์๊ฒ ์ต๋๊น (Y / N)?`
์ฌ๋ฌ๋ถ, ์ด์ ์ด ๋ฒ๊ทธ๋ฅผ ์์ ํ ๊ณ ์น ์๊ฐ์
๋๋ค! v4.1.0
์ ์ถ์๋ก Firebase CLI๋ ๋ ์ด์ ํธ์คํ
๋ฐฐํฌ๋ฅผ์ํ ์น ์์ผ ์ฐ๊ฒฐ์ ์์กดํ์ง ์์ต๋๋ค. ๋ชจ๋ ๊ฒ์ ์ฝ๊ฒ ํ๋ก์์ ํจ๊ป ์๋ํ๋๋ก ํ ์์์ ๊ฒ์
๋๋ค ํ์ค HTTP ์์ฒญ์ ํตํด ์ํ๋๋ ๊ฒ์ ์๋ฏธํ๋ค.
์ด ์์ ์ ์ง์ ์ํํ๊ธฐ ์ํด ๋ก์ปฌ์์ ํ ์คํธ ํ๋ก์๋ฅผ ์คํํ๋ ค๊ณ ํ์ง๋ง ์ํฅ์๋ฐ๋ ์ฌ๋๋ค์ ์ํด :
v4.1.0
"๊ทธ๋ฅ ์๋"ํ๊ฑฐ๋ ์ฌ์ ํ ์ค๋ฅ๊ฐ ์์ต๋๊น?HTTPS_PROXY
ํ๊ฒฝ ๋ณ์ ์ค์ ์ด ํจ๊ณผ๊ฐ ์์ต๋๊น?๊ธด ์ฌ์ ์ด์๋ ๊ฑด ์์ง๋ง (๋๋) ๊ณง ๋๋ ๊ฒ์ ๋๋ค. 4.1.0์ ๋ํ ๊ทํ์ ๊ฒฝํ์๋ณด๊ณ ํด ์ฃผ์๋ฉด ๋๋จธ์ง ๋ฌธ์ ๋ฅผ ํด๊ฒฐํด ๋๋ฆฌ๊ฒ ์ต๋๋ค!
@mbleigh ๋๋ ๊ทธ๊ฒ์ด ํจ๊ป ์ ์๋ ํ์ธํ ์ ์์ต๋๋ค HTTPS_PROXY
์ค์ 4.1.0
. ๐
์
๋ฐ์ดํธ : ์ด์ ๋๋ ๋ฉ์ท๋ค. --debug
ํ์ฑํ ๋ ์ํ์์ ์ฌ๊ธฐ์ ๊ณ ์ ๋ ๊ฒ์ ๋ณผ ์ ์์ต๋๋ค.
[2018-08-17T15:50:53.061Z] <<< HTTP RESPONSE 200 server=nginx, date=Fri, 17 Aug 2018 15:50:52 GMT, content-type=application/json; charset=utf-8, content-length=255, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store
4.1.2
์
๊ทธ๋ ์ด๋ํ๋ฉด ์ด์ ๋ชจ๋ ๊ฒ์ด ๊ด์ฐฎ์ ๋ณด์
๋๋ค.
v4.1.0์ผ๋ก ์
๊ทธ๋ ์ด๋ํ๊ณ HTTPS_PROXY๋ ์ค์ ํฉ๋๋ค.
firebase ๋ก๊ทธ์ธ, ๋ก๊ทธ ์์, ๋ชฉ๋ก์ ์ ์๋ํ์ง๋ง ํ ํฐ์ ๊ฐ์ ธ์จ ํ์๋ ๋ฐฐํฌ๊ฐ ๊ณ์ ์ค๋จ๋ฉ๋๋ค.
v4.1.0์ผ๋ก ์ ๊ทธ๋ ์ด๋ํ๊ณ HTTP_PROXY ๋ก๊ทธ์ธ์ ์ค์ ํ๋ฉด ์๋ํ์ง๋ง firebase ๋ฐฐํฌ์์ ๋ฉ์ถค
๋ณด๊ณ ์๋ฅผ ์์ฑํ๋ ์ฌ๋๋ค์ --debug
๋ก ์คํ๋๋ ๋๋ฒ๊ทธ ๋ก๊ทธ์ ๋ง์ง๋ง ๋ช ์ค ( ์ธ์ฆ ํ ํฐ ์๋ต )๊ณผ ์คํ์ค์ธ ํ๋ก์ ์ ํ (์๊ณ ์๋ ๊ฒฝ์ฐ)์ ํฌํจ ํด ์ฃผ์๊ฒ ์ต๋๊น? ).
firebase deploy
ํ๋ก์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์์๋ ๋ช ๊ฐ์ง ์ถ๊ฐ ์
๋ฐ์ดํธ๊ฐ v4.1.2
์ ์ ์ฉ๋์์ต๋๋ค. ์๋ํด๋ณด๊ณ ์๋ํ์ง ์๋ ๊ฒฝ์ฐ ์๋ ค์ฃผ์ธ์!
@mbleigh firebase
๋ช
๋ น์ ์ด๋ค ํ๋ก์ ์ ํ์ ์ง์ํฉ๋๊น? ์๋ฅผ ๋ค์ด gcloud
๋ช
๋ น์ http, http_no_tunnel, socks4, socks5 ํ๋ก์ ์ ํ์ ์ง์ํฉ๋๋ค. ๋ด ํ
์คํธ์์ ์ต์ ๋ฒ์ ์ firebase๋ ์ฌ์ ํ socks5๋ฅผ ์ง์ํ ์ ์์ต๋๋ค.
Firebase๋ request
๋ฅผ http ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ก ์ฌ์ฉํ๋์? http / https ํ๋ก์ ์ ํ์ ์ง์ํ์ง๋ง socks5์ ๊ฐ์ ๋ค๋ฅธ ์ ํ์ ์ง์ํ๋์ง ๋ชจ๋ฅด๊ฒ ์ต๋๋ค.
Firebase v4.2.0
์์ connent ์๋ฒ์ ํ๋ก์ ์๋ฒ๋ฅผ ์ถ๊ฐ ํ ์ ์์ต๋๋ค.
ํธ์ง request.js
์์ ์ฐพ์ ์์๋ $NODE_PATH/node_modules/request/request.js:290
// line 290 to 298
// if (!self.hasOwnProperty('proxy')) {
// self.proxy = getProxyFromURI(self.uri)
// }
self.proxy = 'http://127.0.0.1:1087' // add proxy server
self.tunnel = self._tunnel.isEnabled()
if (self.proxy) {
self._tunnel.setup(options)
}
๋ฐ๋ผ์ ๋ก๊ทธ์ธ์ด ์ฑ๊ณตํ์ต๋๋ค! ๐
๋ก๊ทธ์ธ ์ฑ๊ณต ํ ํ๋ก์ ์๋ฒ ์ค์ ์ ์ญ์ ํ๋ ๊ฒ์ ์์ง ๋ง์ญ์์ค.
@ chen86860 ์๋์, ์ง๊ธ์ ์์ค ์ฝ๋๋ฅผ ์์ ํ์ง ์๊ณ ํ๊ฒฝ์์ ํ๋ก์๋ฅผ ๋ด ๋ณด๋ ๋๋ค.
$ export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;
@hanguokai๋ ํ์ฌ http_proxy
๋ฐ https_proxy
ํ๊ฒฝ ๋ณ์๋ฅผ ์ง์ํฉ๋๋ค (๋ค๋ฅธ ๊ฒ์ ์์). socks4
socks5
์ ์๋ง๋ ๋ค๋ฅธ ๊ธฐ๋ฅ ์์ฒญ์ผ๋ก ์งํ๋์ด์ผํ๋ค๊ณ ์๊ฐํฉ๋๋ค. ๋ถ๋ด์์ด ์ ์ฒญํ์ญ์์ค!
์ข์ต๋๋ค. socks ํ๋ก์ ์ง์์ ๋ํ ๋ ๋ค๋ฅธ ๋ฌธ์ # 883์ ์ถ๊ฐํฉ๋๋ค.
์ผ๋ถ ์์ฉ ํ๋ก๊ทธ๋จ์ ๋ค์๊ณผ ๊ฐ์ socks ํ๋ก์์ ๋ํ ํ๊ฒฝ ๋ณ์๋ ์ง์ํ๋ค๋ ๊ฒ์ ์๊ณ ์์ต๋๋ค.
export http_proxy=socks5://127.0.0.1:1080 https_proxy=socks5://127.0.0.1:1080
firebase ๋ช ๋ น๋ ์ง์ํ๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
์๋
ํ์ธ์,
๋ด ํ๊ฒฝ์์์ด ๋ฒ๊ทธ๊ฐ v4.1.2
์์ ๋์์์ ํ์ธํฉ๋๋ค.
์ข์์ ์ฌ๋ฌ๋ถ, ์ฌ๊ธฐ ์ฐ๋ฆฌ๊ฐ์๋ ๊ณณ์ ๋๋ค :
์ด์ ์ฌ๋ฐ๋ฅธ ํ๊ฒฝ ๋ณ์๋ฅผ ์ค์ ํ์ฌ HTTP ๋ฐ HTTPS ํ๋ก์๋ฅผ ์ง์ ํ๋ค๊ณ ์๊ฐ ํฉ๋๋ค. ์ต๊ทผ ๋ฆด๋ฆฌ์ค์์์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ค๋ ํผ๋๋ฐฑ์ ๋ฐํ์ผ๋ก์ด ๋ฌธ์ ๋ฅผ ์ข ๋ฃํ๊ฒ ์ต๋๋ค.
์๋ง ํ๋ก์๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ # 883์ ๋ํ ์ฐฌ์ฑ ํฌํ๋ฅผ ๋จ๊ฒจ์ฃผ์ธ์. HTTP / S ํ๋ก์์์ ์ฌ์ ํ ๋ฌธ์ ๊ฐ ๋ฐ์ํ๊ณ HTTP_PROXY
๋ฐ HTTPS_PROXY
ํ๊ฒฝ ๋ณ์๋ฅผ ์ฌ๋ฐ๋ฅด๊ฒ ์ค์ ํ ๊ฒฝ์ฐ ์ ๊ณต ํ ์์๋ ํ ์์ธํ์ด ์ค๋ ๋์ ์ฃผ์์ ๋ฌ์์ฃผ์ธ์.
@chenxsan ์ค,
firebase ๋ก๊ทธ์ธ --no-localhost
์ด ๋ช ๋ น์ ํ๋ก์ ๋ค์์ ๋๋ฅผ ์ํด ์์ ํ์ต๋๋ค.
Firebase
v4.2.0
์์ connent ์๋ฒ์ ํ๋ก์ ์๋ฒ๋ฅผ ์ถ๊ฐ ํ ์ ์์ต๋๋ค.ํธ์ง
request.js
์์ ์ฐพ์ ์์๋$NODE_PATH/node_modules/request/request.js:290
// line 290 to 298 // if (!self.hasOwnProperty('proxy')) { // self.proxy = getProxyFromURI(self.uri) // } self.proxy = 'http://127.0.0.1:1087' // add proxy server self.tunnel = self._tunnel.isEnabled() if (self.proxy) { self._tunnel.setup(options) }
๋ฐ๋ผ์ ๋ก๊ทธ์ธ์ด ์ฑ๊ณตํ์ต๋๋ค! ๐
๋ก๊ทธ์ธ ์ฑ๊ณต ํ ํ๋ก์ ์๋ฒ ์ค์ ์ ์ญ์ ํ๋ ๊ฒ์ ์์ง ๋ง์ญ์์ค.
ํฐ!!!
@ chen86860 ์๋์, ์ง๊ธ์ ์์ค ์ฝ๋๋ฅผ ์์ ํ์ง ์๊ณ ํ๊ฒฝ์์ ํ๋ก์๋ฅผ ๋ด ๋ณด๋ ๋๋ค.
$ export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;
ํฐ๋ฏธ๋์์ ์คํฌ๋ฆฝํธ๋ฅผ ์คํํ์ง๋ง ์ฌ์ ํ ๋์ผํ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
yongjiamingdeMacBook- Pro : firebase yongjiaming $ firebase ๋ก๊ทธ์ธ --debug
[2018-09-18T03 : 33 : 08.860Z] -------------------------------------- --------------------------------
[2018-09-18T03 : 33 : 08.863Z] ๋ช ๋ น : /usr/local/Cellar/node/9.6.1/bin/node / usr / local / bin / firebase login --debug
[2018-09-18T03 : 33 : 08.864Z] CLI ๋ฒ์ : 4.2.1
[2018-09-18T03 : 33 : 08.864Z] ํ๋ซํผ : darwin
[2018-09-18T03 : 33 : 08.864Z] ๋ ธ๋ ๋ฒ์ : v9.6.1
[2018-09-18T03 : 33 : 08.864Z] ์๊ฐ : 2018 ๋ 9 ์ 18 ์ผ ํ์์ผ 11:33:08 GMT + 0800 (CST)
[2018-09-18T03 : 33 : 08.864Z] -------------------------------------- --------------------------------
? Firebase๊ฐ ์ต๋ช ์ CLI ์ฌ์ฉ ๋ฐ ์ค๋ฅ๋ณด๊ณ ์ ๋ณด๋ฅผ ์์งํ๋๋ก ํ์ฉ ํ์๊ฒ ์ต๋๊น? ์
๋ก๊ทธ์ธํ๋ ค๋ฉด ๊ธฐ๊ธฐ์์ ๋ค์ URL์ ๋ฐฉ๋ฌธํ์ธ์.
https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%2Fcloudplatformprojects.readonly 20https % 3A % 2F % 2Fwww.googleapis.com % 2Fauth % 2Ffirebase % 20https % 3A % 2F % 2Fwww.googleapis.com % 2Fauth % 2Fcloud-platform & response_type = code & state = 971322293 & redirect_uri = http % 3A % 2F % 2Flocalhost % 3A9005
์ธ์ฆ ๋๊ธฐ ์ค ...
[2018-09-18T03 : 33 : 16.437Z] >>> HTTP ์์ฒญ ๊ฒ์ https://accounts.google.com/o/oauth2/token
์ฝ๋ = 4 / XgBxvL5SXC-Wg5vT8CCTdfLIoTPKVkCOFcmVku25RwRlkLUc-inqxg6mPRNX7JKRA8fWufJEm-7e5BKTbfFCmsk, CLIENT_ID = 563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com, client_secret = j9iVZfS8kkCEFUPaAeJV0sAi, redirect_uri๋ก = ์ http : // localhost๋ฅผ : 9005, grant_type = authorization_code
[2018-09-18T03 : 33 : 16.454Z] ํ ํฐ ๊ฐ์ ธ ์ค๊ธฐ ์ค๋ฅ : ์ค๋ฅ
์๋ก์ด FirebaseError (/usr/local/lib/node_modules/firebase-tools/lib/error.js:11:16)
Request._callback (/usr/local/lib/node_modules/firebase-tools/lib/api.js:34:11)
self.callback์์ (/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js:185:22)
Request.emit (events.js : 127 : 13)
Request.emit (domain.js : 421 : 20)
Request.onRequestError (/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js:881:8)
ClientRequest.emit (events.js : 127 : 13)
ClientRequest.emit (domain.js : 421 : 20)
ClientRequest.onError (/usr/local/lib/node_modules/firebase-tools/node_modules/tunnel-agent/index.js:179:21)
Object.onceWrapper (events.js : 219 : 13)
^ Z
[1] + firebase ๋ก๊ทธ์ธ ์ค์ง --debug
ํ๋ก์ ๋ค์์ ๋ด ํ๋ก์ ํธ๋ฅผ firebase์ ๋ฐฐํฌํ๋ ๋ฐ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
๋ก๊ทธ์ธ์ ๋ฌธ์ ์์ด ์๋ํฉ๋๋ค.
http_proxy ๋ฐ https_proxy๊ฐ cntlm์ผ๋ก ์ค์ ๋ฉ๋๋ค.
๋ด๊ฐ ์๋ํ ๋ช
๋ น์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
firebase deploy -P <projectname> --token <token> --debug
firebase deploy -P <projectname> --debug
๋ค์์ ์ถ๋ ฅ์ ๋๋ค.
firebase deploy -P prod --debug
[2018-09-20T09:42:15.911Z] ----------------------------------------------------------------------
[2018-09-20T09:42:15.926Z] Command: C:\Program Files\nodejs\node.exe C:\Users\<user>\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase deploy -P prod --debug
[2018-09-20T09:42:15.942Z] CLI Version: 4.2.1
[2018-09-20T09:42:15.942Z] Platform: win32
[2018-09-20T09:42:15.942Z] Node Version: v8.11.3
[2018-09-20T09:42:15.942Z] Time: Thu Sep 20 2018 11:42:15 GMT+0200 (Mitteleuropรคische Sommerzeit)
[2018-09-20T09:42:15.942Z] ----------------------------------------------------------------------
[2018-09-20T09:42:15.973Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2018-09-20T09:42:15.975Z] > authorizing via signed-in user
[2018-09-20T09:42:15.978Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[2018-09-20T09:42:15.979Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
refresh_token=<token>, client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com, client_secret=j9iVZfS8kkCEFUPaAeJV0sAi, grant_type=refresh_token, scope=email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid
[2018-09-20T09:42:16.321Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=utf-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Thu, 20 Sep 2018 09:42:16 GMT, server=ESF, cache-control=private, x-xss-protection=1; mode=block, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=":443"; ma=2592000; v="44,43,39,35", accept-ranges=none, connection=close
[2018-09-20T09:42:16.332Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/<project>
! Your CLI authentication needs to be updated to take advantage of new features.
! Please run firebase login --reauth
[2018-09-20T09:42:16.485Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
[2018-09-20T09:42:16.485Z] > authorizing via signed-in user
[2018-09-20T09:42:16.485Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[2018-09-20T09:42:16.485Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
refresh_token=<token>, client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com, client_secret=j9iVZfS8kkCEFUPaAeJV0sAi, grant_type=refresh_token, scope=email https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid
[2018-09-20T09:42:16.740Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=utf-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Thu, 20 Sep 2018 09:42:16 GMT, server=ESF, cache-control=private, x-xss-protection=1; mode=block, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=":443"; ma=2592000; v="44,43,39,35", accept-ranges=none, connection=close
[2018-09-20T09:42:16.769Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/<project>
[2018-09-20T09:42:16.861Z] Error: tunneling socket could not be established, statusCode=407
at ClientRequest.onConnect (C:\Users\<user>\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\tunnel-agent\index.js:166:19)
at Object.onceWrapper (events.js:319:30)
at emitThree (events.js:136:13)
at ClientRequest.emit (events.js:217:7)
at Socket.socketOnData (_http_client.js:474:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
Error: Server Error. tunneling socket could not be established, statusCode=407
@ chen86860 ์๋์, ์ง๊ธ์ ์์ค ์ฝ๋๋ฅผ ์์ ํ์ง ์๊ณ ํ๊ฒฝ์์ ํ๋ก์๋ฅผ ๋ด ๋ณด๋ ๋๋ค.
$ export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;
ํฐ๋ฏธ๋์์ ์คํฌ๋ฆฝํธ๋ฅผ ์คํํ์ง๋ง ์ฌ์ ํ ๋์ผํ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
yongjiamingdeMacBook- Pro : firebase yongjiaming $ firebase ๋ก๊ทธ์ธ --debug
[2018-09-18T03 : 33 : 08.860Z] -------------------------------------- --------------------------------
[2018-09-18T03 : 33 : 08.863Z] ๋ช ๋ น : /usr/local/Cellar/node/9.6.1/bin/node / usr / local / bin / firebase login --debug
[2018-09-18T03 : 33 : 08.864Z] CLI ๋ฒ์ : 4.2.1
[2018-09-18T03 : 33 : 08.864Z] ํ๋ซํผ : darwin
[2018-09-18T03 : 33 : 08.864Z] ๋ ธ๋ ๋ฒ์ : v9.6.1
[2018-09-18T03 : 33 : 08.864Z] ์๊ฐ : 2018 ๋ 9 ์ 18 ์ผ ํ์์ผ 11:33:08 GMT + 0800 (CST)
[2018-09-18T03 : 33 : 08.864Z] -------------------------------------- --------------------------------? Firebase๊ฐ ์ต๋ช ์ CLI ์ฌ์ฉ ๋ฐ ์ค๋ฅ๋ณด๊ณ ์ ๋ณด๋ฅผ ์์งํ๋๋ก ํ์ฉ ํ์๊ฒ ์ต๋๊น? ์
๋ก๊ทธ์ธํ๋ ค๋ฉด ๊ธฐ๊ธฐ์์ ๋ค์ URL์ ๋ฐฉ๋ฌธํ์ธ์.
https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%2Fcloudplatformprojects.readonly 20https % 3A % 2F % 2Fwww.googleapis.com % 2Fauth % 2Ffirebase % 20https % 3A % 2F % 2Fwww.googleapis.com % 2Fauth % 2Fcloud-platform & response_type = code & state = 971322293 & redirect_uri = http % 3A % 2F % 2Flocalhost % 3A9005์ธ์ฆ ๋๊ธฐ ์ค ...
[2018-09-18T03 : 33 : 16.437Z] >>> HTTP ์์ฒญ ๊ฒ์ https://accounts.google.com/o/oauth2/token
์ฝ๋ = 4 / XgBxvL5SXC-Wg5vT8CCTdfLIoTPKVkCOFcmVku25RwRlkLUc-inqxg6mPRNX7JKRA8fWufJEm-7e5BKTbfFCmsk, CLIENT_ID = 563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com, client_secret = j9iVZfS8kkCEFUPaAeJV0sAi, redirect_uri๋ก = ์ http : // localhost๋ฅผ : 9005, grant_type = authorization_code
[2018-09-18T03 : 33 : 16.454Z] ํ ํฐ ๊ฐ์ ธ ์ค๊ธฐ ์ค๋ฅ : ์ค๋ฅ
์๋ก์ด FirebaseError (/usr/local/lib/node_modules/firebase-tools/lib/error.js:11:16)
Request._callback (/usr/local/lib/node_modules/firebase-tools/lib/api.js:34:11)
self.callback์์ (/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js:185:22)
Request.emit (events.js : 127 : 13)
Request.emit (domain.js : 421 : 20)
Request.onRequestError (/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js:881:8)
ClientRequest.emit (events.js : 127 : 13)
ClientRequest.emit (domain.js : 421 : 20)
ClientRequest.onError (/usr/local/lib/node_modules/firebase-tools/node_modules/tunnel-agent/index.js:179:21)
Object.onceWrapper (events.js : 219 : 13)
^ Z
[1] + firebase ๋ก๊ทธ์ธ ์ค์ง --debug
์ต์ shadowscoks๋ก ์ ๋ฐ์ดํธํ๋ฉด ๋ชจ๋ ๊ฒ์ด ์๋ฉ๋๋ค ~
์ ๋ ์ค๊ตญ์ ์ด๊ณ ์์ด์ GFW ๋๋ถ์ ๊ตฌ๊ธ ์ ํ์ ์ฌ์ฉํ๊ธฐ๊ฐ ์ ๋ง ์ด๋ ต์ต๋๋ค. ํ์ฌ ์ ๋ Google ์๋น์ค์ ์ก์ธ์คํ๊ธฐ ์ํด 1080 ํฌํธ์์ ์์ ํ๋ Shadowsocks๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
์ฌ๊ธฐ์ ๋ ๋ค๋ฅธ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. firebase serve
์ (๋ฅผ) ์คํํ์ฌ ๋์ ๊ธฐ๋ฅ์ ์ ๊ณตํ๋ ค๋ ๊ฒฝ์ฐ localhost ์์ฒญ๋ ์ด๋ฌํ ๋ฐฉ์์ผ๋ก ํ๋ก์๋๋ฏ๋ก http_proxy=socks5://127.0.0.1:1080
์ฌ์ฉํ ์ ์์ต๋๋ค.
๋๋ https_proxy=socks5://127.0.0.1:1080
๋ง ์ฌ์ฉํ์ฌ ์ด๊ฒ์ ํด๊ฒฐํ์ต๋๋ค.
firebase login --no-localhost
export https_proxy=socks5://127.0.0.1:1080
firebase serve
์ฌ์ด์ follwowing ์ฝ๋๋ฅผ ์ถ๊ฐ BEGIN_PROXY
๋ฐ AFTER_PROXY
๋น์ ์ functions/node_modules/faye-websocket/lib/faye/websocket/client.js
// ...
var Client = function(_url, protocols, options) {
options = options || {};
// BEGIN_PROXY
options.proxy = {
origin: 'http://localhost:8888',
headers: {'User-Agent': 'node'},
}
// AFTER_PROXY
// ...
firebase deploy
๋ด ๋ก๊ทธ๋ฅผ ๋ณด๋ ค๋ฉด ํด๋ฆญ
upupming@DESKTOP-6EB87T6 MINGW64 /e/github/firebase-test
$ firebase login --no-localhost
? Allow Firebase to collect anonymous CLI usage and error reporting
information? No
Visit this URL on any device to log in:
https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=928286882&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob
? Paste authorization code here: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+ Success! Logged in as [email protected]
upupming@DESKTOP-6EB87T6 MINGW64 /e/github/firebase-test
$ firebase serve
=== Serving from 'E:\github\firebase-test'...
i functions: Preparing to emulate functions.
i hosting: Serving hosting files from: public
+ hosting: Local server: http://localhost:5000
Warning: You're using Node.js v8.11.3 but Google Cloud Functions only supports v6.11.5.
+ functions: app: http://localhost:5001/learning-13a18/us-central1/app
127.0.0.1 - - [08/Nov/2018:04:40:35 +0000] "GET / HTTP/1.1" 200 3505 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
127.0.0.1 - - [08/Nov/2018:04:40:37 +0000] "GET /__/firebase/init.js HTTP/1.1" 200 - "http://localhost:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
127.0.0.1 - - [08/Nov/2018:04:40:37 +0000] "GET /__/firebase/5.5.7/firebase-app.js HTTP/1.1" 200 - "http://localhost:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
127.0.0.1 - - [08/Nov/2018:04:40:38 +0000] "GET /__/firebase/5.5.7/firebase-auth.js HTTP/1.1" 200 - "http://localhost:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
127.0.0.1 - - [08/Nov/2018:04:40:38 +0000] "GET /__/firebase/5.5.7/firebase-messaging.js HTTP/1.1" 200 - "http://localhost:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
127.0.0.1 - - [08/Nov/2018:04:40:38 +0000] "GET /__/firebase/5.5.7/firebase-database.js HTTP/1.1" 200 - "http://localhost:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/70.0.3538.77 Safari/537.36"
127.0.0.1 - - [08/Nov/2018:04:40:39 +0000] "GET /__/firebase/5.5.7/firebase-storage.js HTTP/1.1" 200 - "http://localhost:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
127.0.0.1 - - [08/Nov/2018:04:40:40 +0000] "GET /favicon.ico HTTP/1.1" 404 1808 "http://localhost:5000/" "Mozilla/5.0 (Windows NT 10.0;
Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
[hosting] Rewriting /timestamp to local function app
info: User function triggered, starting execution
info: Execution took 23 ms, user function completed successfully
127.0.0.1 - - [08/Nov/2018:04:40:41 +0000] "GET /timestamp HTTP/1.1" 200 13 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
[hosting] Rewriting /timestamp to local function app
info: User function triggered, starting execution
info: Execution took 2 ms, user function completed successfully
127.0.0.1 - - [08/Nov/2018:04:40:43 +0000] "GET /timestamp HTTP/1.1" 200 13 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
Shutting down...
upupming@DESKTOP-6EB87T6 MINGW64 /e/github/firebase-test
$ export http_proxy=socks5://127.0.0.1:1080
upupming@DESKTOP-6EB87T6 MINGW64 /e/github/firebase-test
$ firebase serve
Error: Server Error. socket hang up
upupming@DESKTOP-6EB87T6 MINGW64 /e/github/firebase-test
$ export http_proxy=
upupming@DESKTOP-6EB87T6 MINGW64 /e/github/firebase-test
$ firebase serve
=== Serving from 'E:\github\firebase-test'...
i functions: Preparing to emulate functions.
i hosting: Serving hosting files from: public
+ hosting: Local server: http://localhost:5000
Warning: You're using Node.js v8.11.3 but Google Cloud Functions only supports v6.11.5.
+ functions: app: http://localhost:5001/learning-13a18/us-central1/app
Shutting down...
upupming@DESKTOP-6EB87T6 MINGW64 /e/github/firebase-test
$ firebase deploy
Error: Server Error. socket hang up
upupming@DESKTOP-6EB87T6 MINGW64 /e/github/firebase-test
$ firebase deploy
=== Deploying to 'learning-13a18'...
i deploying functions, hosting
Running command: npm --prefix "%RESOURCE_DIR%" run lint
> functions@ lint E:\github\firebase-test\functions
> eslint .
+ functions: Finished running predeploy script.
i functions: ensuring necessary APIs are enabled...
+ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (52.46 KB) for uploading
+ functions: functions folder uploaded successfully
i hosting[learning-13a18]: beginning deploy...
i hosting[learning-13a18]: found 2 files in public
+ hosting[learning-13a18]: file upload complete
i functions: updating Node.js 6 function app(us-central1)...
+ functions[app(us-central1)]: Successful update operation.
i hosting[learning-13a18]: finalizing version...
+ hosting[learning-13a18]: version finalized
i hosting[learning-13a18]: releasing new version...
+ hosting[learning-13a18]: release complete
+ Deploy complete!
Project Console: https://console.firebase.google.com/project/learning-13a18/overviewHosting URL: https://learning-13a18.firebaseapp.com
ํญ์ ํ WiFi ๋คํธ์ํฌ๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ ๋ผ์ฐํฐ์์ Shadowsocks ํ๋ก์๋ฅผ ๊ตฌ์ฑ ํ ์ ์์ต๋๋ค. ์์ธํ ์ ๋ณด๋ ์ด ์ ์ฅ์ ๋ฅผ ์ฐธ์กฐํ์ญ์์ค.
์ ๋ ์ค๊ตญ์ ์ด๊ณ ์์ด์ GFW ๋๋ถ์ ๊ตฌ๊ธ ์ ํ์ ์ฌ์ฉํ๊ธฐ๊ฐ ์ ๋ง ์ด๋ ต์ต๋๋ค. ํ์ฌ ์ ๋ Google ์๋น์ค์ ์ก์ธ์คํ๊ธฐ ์ํด 1080 ํฌํธ์์ ์์ ํ๋ Shadowsocks๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
์ฌ๊ธฐ์ ๋ ๋ค๋ฅธ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
firebase serve
์ (๋ฅผ) ์คํํ์ฌ ๋์ ๊ธฐ๋ฅ์ ์ ๊ณตํ๋ ค๋ ๊ฒฝ์ฐ localhost ์์ฒญ๋ ์ด๋ฌํ ๋ฐฉ์์ผ๋ก ํ๋ก์๋๋ฏ๋กhttp_proxy=socks5://127.0.0.1:1080
์ฌ์ฉํ ์ ์์ต๋๋ค.๋๋
https_proxy=socks5://127.0.0.1:1080
๋ง ์ฌ์ฉํ์ฌ ์ด๊ฒ์ ํด๊ฒฐํ์ต๋๋ค.์์ฝ
๋ก๊ทธ์ธ
firebase login --no-localhost
์๋ธ
export https_proxy=socks5://127.0.0.1:1080 firebase serve
๋ฐฐํฌ
์ฌ์ด์ follwowing ์ฝ๋๋ฅผ ์ถ๊ฐ
BEGIN_PROXY
๋ฐAFTER_PROXY
๋น์ ์functions/node_modules/faye-websocket/lib/faye/websocket/client.js
// ... var Client = function(_url, protocols, options) { options = options || {}; // BEGIN_PROXY options.proxy = { origin: 'http://localhost:8888', headers: {'User-Agent': 'node'}, } // AFTER_PROXY // ...
firebase deploy
๋ด ๋ก๊ทธ๋ฅผ ๋ณด๋ ค๋ฉด ํด๋ฆญ
๋์ฒด ์๋ฃจ์
ํญ์ ํ WiFi ๋คํธ์ํฌ๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ ๋ผ์ฐํฐ์์ Shadowsocks ํ๋ก์๋ฅผ ๊ตฌ์ฑ ํ ์ ์์ต๋๋ค. ์์ธํ ์ ๋ณด๋ ์ด ์ ์ฅ์ ๋ฅผ ์ฐธ์กฐํ์ญ์์ค.
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;export NO_PROXY=localhost,127.0.0.1
2019 ์ฌ์ ํ ์๋ํ์ง ์์ต๋๋ค! ํ์ด์?
๋๋ ํ๋ก์ ๋ค์ ์์ง ์์ต๋๋ค. ๋ก๊ทธ์ธ์ ์ฑ๊ณตํ์ผ๋ฉฐ ๋ฐฐํฌ์ ์ด์ ๋์ผํ ๋ฌธ์ ๊ฐ ๋ฐ์ํฉ๋๋ค.
HTTP_PROXY = ์์ถ http://127.0.0.1 ์์ถํ๊ณ https_proxy =; 1087 : http://127.0.0.1์ : 1087์, ์์ถ NO_PROXY = localhost๋ฅผ 127.0.0.1
์ค๊ตญ์ shadowsocks ๋ค์์ ๋๋ฅผ ์ํด ์ผํ์ต๋๋ค. ๊ฐ์ฌ!
๊ฐ์ ๋ฌธ์ ..
์๋ ํ์ธ์ ์ฌ๋ฌ๋ถ! ๋ค์์ ๋งค์ฐ ๊ฐ๋จํ๊ณ ํ์ผ์ ํธ์ง ํ ํ์๊ฐ์๋ ๋ ๋ค๋ฅธ ์๋ฃจ์ ์ ๋๋ค. Shadowsocks / ShadowsocksR์ ์ฌ์ฉํ๋ ๋์ SSTap์ ์ฌ์ฉํด๋ณด์ญ์์ค. SSTap์ ๊ฐ์ ๋คํธ์ํฌ ์นด๋๋ฅผ ์์ฑํฉ๋๋ค. ์ค๋ช ํ๋ ๋ฐฉ๋ฒ์ ๋ชจ๋ฅด๊ฒ ์ง๋ง ๋ผ์ฐํฐ์์ Shadowsocks (R)๋ฅผ ์คํํ๋ ๊ฒ์ฒ๋ผ ์๋ํฉ๋๋ค. ๋๋ฅผ ์ํด ์ผํ์ต๋๋ค.
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;export NO_PROXY=localhost,127.0.0.1
์ค๊ตญ์ ์๋์ฐ ์ญ์ด์๋ Mac์์ ์๋ํฉ๋๋ค. ๊ฐ์ฌํฉ๋๋ค!
Windows 10์ Powershell์์ shadowsock์ผ๋ก ๊ตฌ๋๋ฉ๋๋ค.
PS> $env:http_proxy = 'http://127.0.0.1:1080'
PS> $env:https_proxy = 'http://127.0.0.1:1080'
PS> $env:NO_PROXY = 'localhost,127.0.0.1'
PS> firebase login
2019/03/24, ์ฌ์ ํ Mac Air์์ ์คํจํ์ต๋๋ค.
์๋ ํ์ธ์ ์ฌ๋ฌ๋ถ! ๋ค์์ ๋งค์ฐ ๊ฐ๋จํ๊ณ ํ์ผ์ ํธ์ง ํ ํ์๊ฐ์๋ ๋ ๋ค๋ฅธ ์๋ฃจ์ ์ ๋๋ค. Shadowsocks / ShadowsocksR์ ์ฌ์ฉํ๋ ๋์ SSTap์ ์ฌ์ฉํด๋ณด์ญ์์ค. SSTap์ ๊ฐ์ ๋คํธ์ํฌ ์นด๋๋ฅผ ์์ฑํฉ๋๋ค. ์ค๋ช ํ๋ ๋ฐฉ๋ฒ์ ๋ชจ๋ฅด๊ฒ ์ง๋ง ๋ผ์ฐํฐ์์ Shadowsocks (R)๋ฅผ ์คํํ๋ ๊ฒ์ฒ๋ผ ์๋ํฉ๋๋ค. ๋๋ฅผ ์ํด ์ผํ์ต๋๋ค.
@ yqx1110 ๊ฐ์ฌํฉ๋๋ค. ์ด๊ฒ์ ์ ๊ฐ ๋ณธ ๊ฒ ์ค ๊ฐ์ฅ ๊ฐ๋ ฅํ ๋๊ตฌ์ ๋๋ค.
์คํจ, ์๋ํ์ง ์์
์๋ ํ์ธ์, ๋ฐฉ๊ธ ํด๊ฒฐ์ฑ ์ ์ฐพ์์ต๋๋ค. ๋งํฌ https://qiita.com/tanoc/items/ac92464de473ae483d50์ ๋ฐ๋ฅด์ญ์์ค
์๋ ํ์ธ์, ๋ฐฉ๊ธ ํด๊ฒฐ์ฑ ์ ์ฐพ์์ต๋๋ค. ๋งํฌ https://qiita.com/tanoc/items/ac92464de473ae483d50์ ๋ฐ๋ฅด์ญ์์ค
์์ ๋ด์ฉ์ Clasp์์๋ ์๋ํฉ๋๋ค. ๊ฐ์ฌํฉ๋๋ค
Windows 10์ Powershell์์ shadowsock์ผ๋ก ๊ตฌ๋๋ฉ๋๋ค.
PS> $env:http_proxy = 'http://127.0.0.1:1080' PS> $env:https_proxy = 'http://127.0.0.1:1080' PS> $env:NO_PROXY = 'localhost,127.0.0.1' PS> firebase login
๊ฐ์ฌํฉ๋๋ค. win10์์ ์ ์๊ฒ ํจ๊ณผ์ ์ ๋๋ค.
์ด ํธ๋ฆญ์ ์ฌ์ฉํ์ฌ Mac์์ ์๋ํฉ๋๋ค.
Mac์์ ๋คํธ์ํฌ ํ๋ก์ ์ค์ ์ผ๋ก ์ด๋ํ์ฌ ํ๋ก์ ์๋ฒ ๋ฐ ํฌํธ๋ฅผ CNTL ๋ก์ปฌ ํธ์คํธ์์ ์ค์ ์ํฐํ๋ผ์ด์ฆ ์๋ฒ ๋ฐ ํฌํธ๋ก ๋ณ๊ฒฝํ์ญ์์ค.
ProxyPass ๋ฐ ProxyUserName : CNTLM์ ์ ์ฅ๋ ๋ก๊ทธ์ธ ์๊ฒฉ ์ฆ๋ช
๊ณผ ๋์ผ
ProxyServer ๋ฐ ProxyPort : ๋คํธ์ํฌ ์ค์ ์์ ์ค์ ํ ๊ฒ๊ณผ ๋์ผํฉ๋๋ค.
export http_proxy=http://<ProxyUserName>:<ProxyPass>@<ProxyServer>:<ProxyPort>
export https_proxy=http://<ProxyUserName>:<ProxyPass>@<ProxyServer>:<ProxyPort>
์ด์ firebase์ ์ ์์ ์ผ๋ก ๋ก๊ทธ์ธํ๊ณ ํด๋ผ์ฐ๋ ๊ธฐ๋ฅ์ ๋ฐฐํฌ ํ ์์์์ต๋๋ค. ์๋ํ๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;export NO_PROXY=localhost,127.0.0.1
๋๋ฅผ ์ํด ์๋ํฉ๋๋ค! ๊ณ ๋ง์.
2019.8.10 ์์ ๊ฑฐ์ ๋ชจ๋ ์๋ฃจ์ ์ ์๋ํ์ง๋ง ์๋ํ์ง ์์ต๋๋ค. ์ฌํ๊ฒ๋ ...
@starry
๋๋ฅผ ์ํด ์ผํด, ๊ณ ๋ง์
Windows 10์ Powershell์์ shadowsock์ผ๋ก ๊ตฌ๋๋ฉ๋๋ค.
PS> set http_proxy = 'http://127.0.0.1:1080' PS> set https_proxy = 'http://127.0.0.1:1080' PS>set NO_PROXY = 'localhost,127.0.0.1' PS> firebase login
win10์์ ์ด๊ฒ์ ๋๋ฅผ ์ํด ์๋ํ๋ฉฐ 1080์ ๋ด ํ๋ก์ ํฌํธ์ ๋๋ค.
์ด ํธ๋ฆญ์ ์ฌ์ฉํ์ฌ Mac์์ ์๋ํฉ๋๋ค.
- Mac์์ ๋คํธ์ํฌ ํ๋ก์ ์ค์ ์ผ๋ก ์ด๋ํ์ฌ ํ๋ก์ ์๋ฒ ๋ฐ ํฌํธ๋ฅผ CNTL ๋ก์ปฌ ํธ์คํธ์์ ์ค์ ์ํฐํ๋ผ์ด์ฆ ์๋ฒ ๋ฐ ํฌํธ๋ก ๋ณ๊ฒฝํ์ญ์์ค.
- ํฐ๋ฏธ๋ ์์ ์ธ์ฆ ํ๋ก์์์ ์๋์
ProxyPass ๋ฐ ProxyUserName : CNTLM์ ์ ์ฅ๋ ๋ก๊ทธ์ธ ์๊ฒฉ ์ฆ๋ช ๊ณผ ๋์ผ
ProxyServer ๋ฐ ProxyPort : ๋คํธ์ํฌ ์ค์ ์์ ์ค์ ํ ๊ฒ๊ณผ ๋์ผํฉ๋๋ค.export http_proxy=http://<ProxyUserName>:<ProxyPass>@<ProxyServer>:<ProxyPort> export https_proxy=http://<ProxyUserName>:<ProxyPass>@<ProxyServer>:<ProxyPort>
์ด์ firebase์ ์ ์์ ์ผ๋ก ๋ก๊ทธ์ธํ๊ณ ํด๋ผ์ฐ๋ ๊ธฐ๋ฅ์ ๋ฐฐํฌ ํ ์์์์ต๋๋ค. ์๋ํ๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
๊ทธ๊ฒ์ ๋๋ฅผ ์ํด ์๋ํฉ๋๋ค! ๊ฐ์ฌ. ๐
์ฌ์ ํ์ด ๋ฌธ์ ๋ฅผ ๊ฒช๊ณ ์์ง๋ง 2020 ๋ ์๋ ์ฌ์ ํ ์กด์ฌํ๋ค๋ ๊ฒ์ ๋ฏฟ์ ์ ์์ต๋๋ค ...
๊ฐ์ ๋ฌธ์ .
Mac์์ ํ๋ก์ ์ฉ v2ray๋ฅผ ์ฌ์ฉํ๋ ์ฌ์ฉ์ :
์ด๊ฒ์ด ๋์์ด๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
์ฌ๊ธฐ์ ์ฃผ์ ๋
ผ๋ฆฌ๋ ๋ด ๋ก์ปฌ ์ปดํจํฐ์ ํ๋ก์๊ฐ ์๋ค๋ ๊ฒ์ ํ์ด์๊ฒ ์๋ฆฌ๋ ๊ฒ์
๋๋ค.
์ด๊ฒ์ด ๋์์ด๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
[email protected]
๊ทธ๊ฒ์ ssr๋ก win๊ณผ mac ๋ชจ๋์์ ์๋ํฉ๋๋ค.
ํ๋ก์ ์ฃผ์ ์ฐพ๊ธฐ
firebase ๋๊ตฌ ํด๋์์ "request.js"ํ์ผ์ ์ฝ๋ ๋ค. ๋๋ฅผ ์ํด ๊ฒฝ๋ก๋
/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js
"npm root -g"๋ฅผ ์ฌ์ฉํ์ฌ ์ ์ญ npm ๊ฒฝ๋ก๋ฅผ ์ฐพ์ต๋๋ค.
276 ํ์ ๋ํ ์๋ ์ฝ๋๋ฅผ ์ฐพ์ผ์ญ์์ค.
if (!self.hasOwnProperty('proxy')) {
self.proxy = getProxyFromURI(self.uri)
}
๊ทธ๊ฒ์ ๋ณ๊ฒฝ
// if (!self.hasOwnProperty('proxy')) {
// self.proxy = getProxyFromURI(self.uri)
// }
self.proxy = "http://127.0.0.1:1087"; // this is your proxy address
์ด๊ฒ์ด ๋์์ด๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
[email protected]
๊ทธ๊ฒ์ ssr๋ก win๊ณผ mac ๋ชจ๋์์ ์๋ํฉ๋๋ค.
- ํ๋ก์ ์ฃผ์ ์ฐพ๊ธฐ
- firebase ๋๊ตฌ ํด๋์์ "request.js"ํ์ผ์ ์ฝ๋ ๋ค. ๋๋ฅผ ์ํด ๊ฒฝ๋ก๋
/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js
"npm root -g"๋ฅผ ์ฌ์ฉํ์ฌ ์ ์ญ npm ๊ฒฝ๋ก๋ฅผ ์ฐพ์ต๋๋ค.- 276 ํ์ ๋ํ ์๋ ์ฝ๋๋ฅผ ์ฐพ์ผ์ญ์์ค.
if (!self.hasOwnProperty('proxy')) { self.proxy = getProxyFromURI(self.uri) }
๊ทธ๊ฒ์ ๋ณ๊ฒฝ
// if (!self.hasOwnProperty('proxy')) { // self.proxy = getProxyFromURI(self.uri) // } self.proxy = "http://127.0.0.1:1087"; // this is your proxy address
- firebase login --no-localhost ์ฌ์ฉ
๊ทธ๊ฒ์ ๋๋ฅผ ์ํด ์๋ํฉ๋๋ค! ์ ๋ง ๋ด ์๋ฉ์ด๋ฅผ ๊ตฌํด์ค! ๊ฐ์ฌ!
์ต์ ๋ฒ์ ์์์ด ๋ฌธ์ ์ ๋ํ ํด๊ฒฐ์ฑ ์ด ์์ต๋๊น?
์ด๊ฒ์ด ๋์์ด๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
๋จ๊ณ๋ ์ด์ ๊ณผ ๋์ผํฉ๋๋ค. ์ ํ์ผ ์์น : ... / firebase-tools / lib / api.js
์๋ ์ฝ๋๋ฅผ 297 ํ์์ ์ฐพ์ผ์ญ์์ค.
reqOptions.headers = options.headers;
reqOptions.timeout = options.timeout;
reqOptions.proxy = "http://127.0.0.1:10818";
firebase login --no-localhost
@jplyue ๊ฐ ํ์ฌ ํ๋ก์์ ๋ ์ด์ ์๋ํ์ง ์๋ ์๋ก์ด Firebase ๋๊ตฌ ๋ฒ์ ์ ๊ฑฐ์
์ด๊ฒ์ด ๋์์ด๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
[email protected]
๊ทธ๊ฒ์ ssr๋ก win๊ณผ mac ๋ชจ๋์์ ์๋ํฉ๋๋ค.
- ํ๋ก์ ์ฃผ์ ์ฐพ๊ธฐ
- firebase ๋๊ตฌ ํด๋์์ "request.js"ํ์ผ์ ์ฝ๋ ๋ค. ๋๋ฅผ ์ํด ๊ฒฝ๋ก๋
/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js
"npm root -g"๋ฅผ ์ฌ์ฉํ์ฌ ์ ์ญ npm ๊ฒฝ๋ก๋ฅผ ์ฐพ์ต๋๋ค.- 276 ํ์ ๋ํ ์๋ ์ฝ๋๋ฅผ ์ฐพ์ผ์ญ์์ค.
if (!self.hasOwnProperty('proxy')) { self.proxy = getProxyFromURI(self.uri) }
๊ทธ๊ฒ์ ๋ณ๊ฒฝ
// if (!self.hasOwnProperty('proxy')) { // self.proxy = getProxyFromURI(self.uri) // } self.proxy = "http://127.0.0.1:1087"; // this is your proxy address
- firebase login --no-localhost ์ฌ์ฉ
๋๋ฅผ ์ํด ์๋ํฉ๋๋ค !!!!!!!!!
ํ๋ก์์์ firebase๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ ์ ๋ง ๊ณ ํต ์ค๋ฝ์ต๋๋ค.
์ด ํธ๋ฆญ์ ์ฌ์ฉํ์ฌ Mac์์ ์๋ํฉ๋๋ค.
- Mac์์ ๋คํธ์ํฌ ํ๋ก์ ์ค์ ์ผ๋ก ์ด๋ํ์ฌ ํ๋ก์ ์๋ฒ ๋ฐ ํฌํธ๋ฅผ CNTL ๋ก์ปฌ ํธ์คํธ์์ ์ค์ ์ํฐํ๋ผ์ด์ฆ ์๋ฒ ๋ฐ ํฌํธ๋ก ๋ณ๊ฒฝํ์ญ์์ค.
- ํฐ๋ฏธ๋ ์์ ์ธ์ฆ ํ๋ก์์์ ์๋์
ProxyPass ๋ฐ ProxyUserName : CNTLM์ ์ ์ฅ๋ ๋ก๊ทธ์ธ ์๊ฒฉ ์ฆ๋ช ๊ณผ ๋์ผ
ProxyServer ๋ฐ ProxyPort : ๋คํธ์ํฌ ์ค์ ์์ ์ค์ ํ ๊ฒ๊ณผ ๋์ผํฉ๋๋ค.export http_proxy=http://<ProxyUserName>:<ProxyPass>@<ProxyServer>:<ProxyPort> export https_proxy=http://<ProxyUserName>:<ProxyPass>@<ProxyServer>:<ProxyPort>
์ด์ firebase์ ์ ์์ ์ผ๋ก ๋ก๊ทธ์ธํ๊ณ ํด๋ผ์ฐ๋ ๊ธฐ๋ฅ์ ๋ฐฐํฌ ํ ์์์์ต๋๋ค. ์๋ํ๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
๊ทธ๊ฒ์ ๋๋ฅผ ์ํด ์๋ํฉ๋๋ค! ๊ฐ์ฌ. ๐
๋๋ฅผ ์ํด ์ผํ์ญ์์ค! ๊ฐ์ฌํฉ๋๋ค
๊ฐ์ ๋ฌธ์ ์ ์ง๋ฉดํ๋ค
HTTP_PROXY = ์์ถ http://127.0.0.1 ์์ถํ๊ณ https_proxy =; 1087 : http://127.0.0.1์ : 1087์, ์์ถ NO_PROXY = localhost๋ฅผ 127.0.0.1
๊ฐ์ฌํฉ๋๋ค!
์ด๊ฒ์ด ๋์์ด๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
[email protected]
๊ทธ๊ฒ์ ssr๋ก win๊ณผ mac ๋ชจ๋์์ ์๋ํฉ๋๋ค.
- ํ๋ก์ ์ฃผ์ ์ฐพ๊ธฐ
- firebase ๋๊ตฌ ํด๋์์ "request.js"ํ์ผ์ ์ฝ๋ ๋ค. ๋๋ฅผ ์ํด ๊ฒฝ๋ก๋
/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js
"npm root -g"๋ฅผ ์ฌ์ฉํ์ฌ ์ ์ญ npm ๊ฒฝ๋ก๋ฅผ ์ฐพ์ต๋๋ค.- 276 ํ์ ๋ํ ์๋ ์ฝ๋๋ฅผ ์ฐพ์ผ์ญ์์ค.
if (!self.hasOwnProperty('proxy')) { self.proxy = getProxyFromURI(self.uri) }
๊ทธ๊ฒ์ ๋ณ๊ฒฝ
// if (!self.hasOwnProperty('proxy')) { // self.proxy = getProxyFromURI(self.uri) // } self.proxy = "http://127.0.0.1:1087"; // this is your proxy address
- firebase login --no-localhost ์ฌ์ฉ
์๋ ํจ
์ด๊ฒ์ด ๋์์ด๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
[email protected]
๊ทธ๊ฒ์ ssr๋ก win๊ณผ mac ๋ชจ๋์์ ์๋ํฉ๋๋ค.
- ํ๋ก์ ์ฃผ์ ์ฐพ๊ธฐ
- firebase ๋๊ตฌ ํด๋์์ "request.js"ํ์ผ์ ์ฝ๋ ๋ค. ๋๋ฅผ ์ํด ๊ฒฝ๋ก๋
/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js
"npm root -g"๋ฅผ ์ฌ์ฉํ์ฌ ์ ์ญ npm ๊ฒฝ๋ก๋ฅผ ์ฐพ์ต๋๋ค.- 276 ํ์ ๋ํ ์๋ ์ฝ๋๋ฅผ ์ฐพ์ผ์ญ์์ค.
if (!self.hasOwnProperty('proxy')) { self.proxy = getProxyFromURI(self.uri) }
๊ทธ๊ฒ์ ๋ณ๊ฒฝ
// if (!self.hasOwnProperty('proxy')) { // self.proxy = getProxyFromURI(self.uri) // } self.proxy = "http://127.0.0.1:1087"; // this is your proxy address
- firebase login --no-localhost ์ฌ์ฉ
์๋ ํจ
์ฐ๋ถํฌ 20.04์์ ํ ์คํธ ํ ๊ฒฐ๊ณผ ๋งค๋ ฅ์ฒ๋ผ ์๋ํฉ๋๋ค. ๊ณต์ ํด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!
์ด๊ฒ์ด ๋์์ด๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
[email protected]
๊ทธ๊ฒ์ ssr๋ก win๊ณผ mac ๋ชจ๋์์ ์๋ํฉ๋๋ค.
- ํ๋ก์ ์ฃผ์ ์ฐพ๊ธฐ
- firebase ๋๊ตฌ ํด๋์์ "request.js"ํ์ผ์ ์ฝ๋ ๋ค. ๋๋ฅผ ์ํด ๊ฒฝ๋ก๋
/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js
"npm root -g"๋ฅผ ์ฌ์ฉํ์ฌ ์ ์ญ npm ๊ฒฝ๋ก๋ฅผ ์ฐพ์ต๋๋ค.- 276 ํ์ ๋ํ ์๋ ์ฝ๋๋ฅผ ์ฐพ์ผ์ญ์์ค.
if (!self.hasOwnProperty('proxy')) { self.proxy = getProxyFromURI(self.uri) }
๊ทธ๊ฒ์ ๋ณ๊ฒฝ
// if (!self.hasOwnProperty('proxy')) { // self.proxy = getProxyFromURI(self.uri) // } self.proxy = "http://127.0.0.1:1087"; // this is your proxy address
- firebase login --no-localhost ์ฌ์ฉ
์๋ ํจ
ํ๋ก์๋ฅผ ํธ์งํ๊ณ ๋ค์ ๋ช
๋ น์ ์คํํ์ฌ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์๋ ํดํนํฉ๋๋ค.
sed -i '/self.tunnel*/i self.proxy = " http://192.168.219.7 : 9090";' /usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js
์ด๊ฒ์ด ๋์์ด๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
[email protected]
๊ทธ๊ฒ์ ssr๋ก win๊ณผ mac ๋ชจ๋์์ ์๋ํฉ๋๋ค.
- ํ๋ก์ ์ฃผ์ ์ฐพ๊ธฐ
- firebase ๋๊ตฌ ํด๋์์ "request.js"ํ์ผ์ ์ฝ๋ ๋ค. ๋๋ฅผ ์ํด ๊ฒฝ๋ก๋
/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js
"npm root -g"๋ฅผ ์ฌ์ฉํ์ฌ ์ ์ญ npm ๊ฒฝ๋ก๋ฅผ ์ฐพ์ต๋๋ค.- 276 ํ์ ๋ํ ์๋ ์ฝ๋๋ฅผ ์ฐพ์ผ์ญ์์ค.
if (!self.hasOwnProperty('proxy')) { self.proxy = getProxyFromURI(self.uri) }
๊ทธ๊ฒ์ ๋ณ๊ฒฝ
// if (!self.hasOwnProperty('proxy')) { // self.proxy = getProxyFromURI(self.uri) // } self.proxy = "http://127.0.0.1:1087"; // this is your proxy address
- firebase login --no-localhost ์ฌ์ฉ
๋๋์ด ์๋ํฉ๋๋ค !!! ๊ฐ์ฌํฉ๋๋ค !!!! ๐ท๐ท๐ท
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
Firebase ๊ฐ๋ฐ์๋์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ญ์์ค. ์ฌ๊ฐํ ๊ฐ๋ฐ ์ง์ฐ์ ๋๋ค.