douban / code

[DEPRECATED]Douban CODE

Home Page:http://douban-code.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

push failuer

yupbank opened this issue · comments

i tested locally, Connection refused alerted :(

➜ test_code git:(master) git push -u origin master

error: Failed connect to 127.0.0.1:80; Connection refused while accessing http://127.0.0.1/test/test_first.git/info/refs?service=git-receive-pack
fatal: HTTP request failed

@yupbank Maybe our local code's port is not 80? Please run gunicorn -b 127.0.0.1:80 app:app.

my bad :) it works fine now and i close it.

i was trying to close it, but another problem occur

when first push,

Username for 'http://127.0.0.1': test
Password for 'http://test@127.0.0.1':
Counting objects: 3, done.
Writing objects: 100% (3/3), 214 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote: File "hooks/post-receive", line 18, in
remote: from config import DOMAIN
remote: ImportError: No module named config
To http://127.0.0.1/test/test_first.git

  • [new branch] master -> master
    Branch master set up to track remote branch master from origin.

i have fixed this.. but seems another problem occurs.

➜ test_code git:(master) git push
Counting objects: 5, done.
Writing objects: 100% (3/3), 246 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)


with long time stuck

error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

@yupbank Sorry about this, I'll fix this soon.