bae 問題
端口為18080
bae指定的端口,不可更改。
使用express
說明:使用的git用來版本管理。
- 開始使用的時(shí)候直接在 server.js require('express')上傳bae會(huì)報(bào) express 模塊找不到。
- 在package.json中添加對(duì)應(yīng)的模塊礁叔。
- node_modules安裝到本地上傳到bae.
此時(shí)回遇到問題
git報(bào)異常
Counting objects: 665, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (596/596), done.
error: RPC failed; HTTP 411 curl 22 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
Writing objects: 100% (665/665), 3.65 MiB | 0 bytes/s, done.
Total 665 (delta 101), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date
BAE Git倉(cāng)庫(kù)默認(rèn)需要上傳的最大文件為1MB,如果文件超大迄薄,則會(huì)提示錯(cuò)誤error: RPC failed; result=22, HTTP code = 411琅关。若用戶需要上傳大文件,可以通過修改postBuffer來修改上傳文件的最大值讥蔽,這里我們?cè)O(shè)置為524288000涣易,即最大可以上傳500MB的文件画机。
- bae幫助文檔
-
參考stackoverflow的解答
解決問題:
git config http.postBuffer 524288000
git push