Closed victor-yan closed 8 years ago
Have somebody any ideas? I still try to make it work, but stil no luck..
I would recommend adding some debugging to https://github.com/Glavin001/GitLab-Pages/blob/master/routes/webhooks.js#L71-L114 and attempting to narrow down where your problem begins.
I am not currently using GitLab so I am unable to test right now however I'll try to help you debug best I can. :smiley:
first of all thanks for your reply!
code stuck on
if (ref !== deployRef) { // debug(ref, deployRef); return res.end();
i read,that someone is coment this out and it worked, so i try to do the same. After this my debuging came to string
promise.then(function(repo) {
and stuck there..
since I am not a programmer , I can not understand what the problem is and how to fix it
by the way.. i suspect that i have some problem with nodegit, as i understand your code crash after try to using it, and i notice that when i try to install nodegit i get this message
[nodegit] Fetching binary from S3. [nodegit] Failed to install prebuilt binary:
but in the end it say that manual build and install sucsesful, and your code do not display any error with it. so i dont know how to confirm my guess. so i have questions to you:
1)wich version of nodegid should work? (i tried 0.4.1 0.6.0 0.11.0) result the same..
2)maybe you know how to test if the problem is related to nodegit?
thank for your help!
Looks like 0.4.1 is what I would have tested: https://github.com/Glavin001/GitLab-Pages/blob/master/package.json#L38
So after your debugging you found it stopped at https://github.com/Glavin001/GitLab-Pages/blob/master/routes/webhooks.js#L80 ? Maybe you could add:
promise.catch(function(error) { console.error(error); });
and see if there was an error thrown while trying to pull or clone the repository. That is likely why it never passes promise.then
.
AWESOME! problem was with ssh-connection to gitlab (pages and gitlab "live" on the same server). Anyway, your advice gave me the opportunity to see exactly where the problem. Maybe you should commit it in your repo? this is VERY usefull for me.
Many thanks for your help!
Please feel free to submit a Pull Request for me to review with any recommend changes you found useful :smiley:. Thanks!
I just add promise.catch(function(error)
{ console.error(error); });`
before https://github.com/Glavin001/GitLab-Pages/blob/master/routes/webhooks.js#L80
and it show me where is my problem.
P.S. if someone will have the same issue i strongly recomend to start it with DEBUG=* npm start and read output.
I added that line. Thanks!
I have long tried to make it work, but still have problem with it. what work: deploy key and webhook sucsesfully added, i can enable and disable projects in list. what doesn't work: after i commit into gl-pages branch (or master, does not matter) i've got only created new folder (as i configure as tmp) and its all. in DEBUG=* npm start:
and i got nothing in my publicPagesDir, so when i try to load my page - i have 404..
i try to instal it several times in different OS, (for different packages version) but the result steel the same. Please help me to find the reason and and make it work.