34 comments found.
archived?
is it still working?
It’s untested for the moment. We will come back to this still this month, but at this point we don’t recommend you buying it. Thanks
hi , is this script contain api for push the project or codes to pull on github?
Hi khaloooody, This script is intended for beginners and advanced coders that want to update code on the live server in the moment they Commit / Push code to the repository. Hope it’s clear. Regards
yes thank you
hi i have one more question… can this script create new Repository on github?
Hi khaloooody, No, the script doesn’t work that way because it operates at the end of the flow: You push code to the repository and then is a Hook setup in GitHub that sends the code to the script. The job of the script is to receive the code from GitHub, process it and move it to the selected folder. Regards
thanks
Hey @NTKNetworks, I was wondering if your script also works with GitHub Private Repos and also if you have a solution for using this script with self-hosted private repos. The good thing about paid Github/DeployBot subscriptions is they come with private repos so work for professional clients is not public. It would be ideal if there was a solution for deployment with my own hosted repos. Thanks and let me know your thoughts.
Hi @kevinorin. Yes, it works with Github private repos – you just have to insert your username and password and the script should work. Give it a try and let me know if you need help setting it up. Regards
Thanks, what about a solution for deployment with my own hosted/private repos. Do you know of any tutorial method that would still work with your script? Or does your script work with GitLab?
Good question, I honestly don’t know but in fact it should. As long as a git repo has a hook that posts the payload to the script, it should be able to open it and deploy the code, but I can’t assure you it’s going to work.
Due to profound changes in the way the Webhooks work both in GitHub and Bitbucket, the script stopped working.
A new improved script is on the process of being sent for review, please let us know if you have any problem with the current script.
Thanks for understanding.
Can i get some help with this? I cant get this to work on justhost and i followed everything in the instructions.
Hi, Are you using GitHub or Bitbucket? what do you have on the log? Thanks
Hi, Are you using GitHub or Bitbucket? what do you have on the log? Thanks
I am using Github and the log does not show much just 18-06-2016 19:09:21 : Unzip Failed
It seems like GitHub recently changed the way the Hook is sent to the script, can you email us on info@ntknetworks.com so we can follow-up there? We’re working to solve the issue. Thanks
Hey there — I see a comment from a few months ago saying that this item wasn’t working? I can’t get it to work myself — I get a unzip error.
Is this item actually functionally currently?
Hi ctsgraphics. The item is working! Are you using Bitbucket or Github?
I’ve tried to contact you on your support link. NO RESPONSE. Is that too hard to check your email and responde?
Hi, we had some problems with emails not passing through, sorry, I’ll reply to it now!
Hey, i have bought this script, set it up for bitbucket but i get a No payload on logs.
Hi, what type of hook are you using in Bitbucket? I’ll reply to your email now with some more info.
It works great, love the log.txt option too as that’s something we can pull into a dashboard.
The only thing I’d recommend is commenting the deploy.php as follows
1. Site username = call this “github or bitbucket username”, saying site could easily confuse the reader. 2. same goes for password 3. // directory to deploy repository, we’ve included a tool to know what is the exact
call this absolute path to deploy repository, and be sure to say “Must Include trailing slash”
that’s it, maybe also have a way to ignore directories in a future update, great script!
Thanks, will take your notes into consideration for a future release!
Thanks for the helpful product!
Unfortunately it doesn’t seem to work under IIS when set to “Update”, deploy however works as expected. Any ideas on what I should change or try?
Thank you!
Hi! Unfortunately it only works with Linux, it’s stated in the description.
Your script doesn’t work on cPanel.
Hi ankitp4,
We’re pretty sure it works and to be honest, your complaint is not very clear: Are you using Github or Bitbucket? Have you enabled logging? what does it say?
Please email info@ntknetworks.com for further support.
Regards, Nuno
But you have not reply yet. Actually, we have setup the script on server everything start working but there is unzipping issue coming and i need your help to check where we are making some mistake …
1- Making BitBucket integration from Local system (Working 100%) 2- Commits going to Bitbucket – Working 100% 3- Deploying the changes to server using your script – Not Working… 4- SSH key Added working fine 5- Bitbucket start communicating with server and zip is start creating but issue is below…
30-10-2015 16:19:29 : No Payload 30-10-2015 16:19:29 : Unzip Failed 30-10-2015 16:22:15 : No Payload 30-10-2015 16:22:15 : Unzip Failed
This is our code settings … I think no issue in it as well. http://screencast.com/t/V1zBIcRK3TxVRegards,
Nir Appelton
I have sent you email as well. Reply me please… Waiting for you reply from 2 days …
Hi Nir,
Your first email came in 22h ago, and it’s not because you sent 5 emails that you’ll get your reply faster. I’ve just replied to you.
Let me know if you need anything else.
Regards, Nuno
Please check your emails from Contact support as well. In script there was link directly to your support. So, thanks for your reply … just sending you credentials from email …
IS this working again?
Hi BillieMead,
Unfortunately not yet. We’re working on it and it should be back on within approximately two weeks.
Regards
Hi CodeXstudios,
The script is back to work, let me know if you need any support setting it up.
Regards, Nuno
Script stopped working as of today, probally due to new webhooks at bitbucket. Says: No Payload
Hi dermemo,
It seems like Bitbucket is rolling out some changes to their Hooks, I’ll keep you posted about the updates. You can follow up more easily through info@ntknetworks.com
Regards, Nuno
I just completed the setup of the deploy webhook and when I commit to bitbucket, i get a No Payload error in the log file.
I can see the hook working : repo:push a few seconds ago 108ms 200
Is it possible that bitbucked is not using payload as $_POST anymore ?
Hi,
The No Payload can come from an error in the connection between your server and Bitbucket. Have you tested with Github?
Regards, Nuno
HI Nuno,
I’ve tested with GitHub and the files are getting pushed after the commit. Only problem is that GitHub webhook status says it got an 500 error :
Connection: close Content-Length: 669 Content-Type: text/html; charset=iso-8859-1 Date: Sat, 20 Jun 2015 19:39:18 GMT Server: Apache
File aren’t unzipped, only the commit.zip file is there, and nothing is logged in the logfile.
So I tested with diffenret content-type config : with the json one, i get a 200 response but no payload in the log. with the content-type: application/x-www-form-urlencoded I get a 500 error…
Hi Jetli,
The way you describe your problem I’m almost sure the problem is with writing permissions on your server. If both Bitbucket and Github are giving you troubles and nothing is logged in the file, the script doesn’t have the necessary permissions.
Where are you seeing the 500 error from Github? if the file is pushed it shouldn’t give an error.
Thanks, Nuno
Hello Nuno,
The 500 error is the answer github recieve from my host’s server when github’s webhook is called.
Here are the details
Headers Connection: close Content-Length: 669 Content-Type: text/html; charset=iso-8859-1 Date: Sat, 20 Jun 2015 19:55:20 GMT Server: Apache Body <!DOCTYPE HTML PUBLIC ”-//IETF//DTD HTML 2.0//EN”> <head> <title>500 Internal Server Error</title> </head>Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator…
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Allright, I found out why the server was giving me a 500 error, the parent folder was set to chmod 777 instead of 755. still got the no payload error on bitbucket tho. No error from github, except that it does not unzip the archive
Hi Jetli,
Are you sure the Hook is reaching your server? Can you send me by email the settings of your hook? info@ntknetworks.com
Thanks, Nuno
Hi,
Did you make any progress adding an option to filter hooks from a specific branch? I’m fairly new to Git but I’m wondering if this could be achieved for GitHub by using the ref variable from the hook payload.
https://developer.github.com/v3/activity/events/types/#pusheventWhat do you think?
Hi Jonathan,
Sorry for the late reply. So far we didn’t do any changes to the script, but it’s certainly something we can improve. From what I saw it’s a powerful feature, can you extend your request by email to info@ntknetworks.com?
Thanks Nuno
Hi, before i buy your product i have few questions 1. does it deply over ftp only or sftp is also supported? 2. does it upload/remove only files changed in latest commit or upload all files in the github/bitbucket repo? 3. can i see some log if all files were transferred ok? what if some transfer failed? how can i get notified?
Thanks
Hi,
Thanks for your interest. 1. It supports SFTP; 2. Yes, you can choose that on the top of the config file; 3. Yes, if you enable logging you’ll see lot’s of information about the commit: the transferred files, the status of the unzip, and everything else the system does when it receives the file from Github / Bitbucket.
Best Regards, Nuno
Hi, i purchased your script and configure it to work. There is one problem though. Regardless i set
private $process = ‘update’;
i get the following in my log file:
26-05-2015 07:00:31 : Process: deploy 26-05-2015 07:00:31 : Commit Message: Post failed, complete deploy
So i can’t get it work in “update” mode. Can you tell me what may be the problem?
Also i would like to comment regarding the conversation with renni96 (changing branch). Not sure about the github, but the bitbucket sends the branch in the $_POST (payload->commits->branch) so i think you should add new variable on the top of deploy.php and user can set which branch thay want updates from and if update is coming from another branch then just ignore the hook call.
Hi Kirez,
Thanks for your message. The post failed message is normally connected either with a problem from Bitbucket or a writing permissions problem on your server. Can you email us through info@ntknetworks.com so we can follow up on the subject?
Also, thanks for the note on the Bitbucket, if it’s possible we’ll certainly include that feature in the near future.
Regards, Nuno
how can i change the branche?
i don’t like this, when i push it in a develop (for me) branch and the deploy code deployed code to server. i will deploy only, wenn i push it into for example master-branche.
if I can not adjust the script is worthless.
fyi: i use bitbucket. github – i do not care
Hi. Thanks for buying the product. As I said you in my other comment, the script deploys what the Bitbucket hook sends to it, which in Bitbucket’s case is always the content of the repository, as you can read here: https://confluence.atlassian.com/display/BITBUCKET/POST+hook+management Unfortunately it’s not a fault of the script. For further support I recommend you to send a support request here: http://ntknetworks.com/support/contact-us/
Thanks, Nuno