34 comments found.
Does this support all git types? Reverse Commit etc.?
Hi,
Direct answer: no, but: The script has nothing to do with what you do with GIT. What I mean is that if you commit, the Github / Bitbucket hook will send the script the entire code to deploy. If you reverse (I think you meant revert) the code will be sent again by the hook that will once again deploy the new code on the server. Hope that was clear.
Cheers, Nuno
do i need a git service on my server? Or only Linux (ubuntu)?
Hi, Thanks for your interest. No, the purpose is to use Github or Bitbucket and then deploy your commits directly to your server. Currently you just need any Linux server. Ubuntu will surely do. Nuno
Hello Nuno, Which branch does it take by default?
Hi!
The Hook is triggered on commit, so whatever branch you commit is the code you’re going to receive on the script.
Thanks Nuno
Puf, it shoud decide which branch… Becouse you can have a development branch…
It’s not possible because the hook is only connected with the commit, therefore the system doesn’t know which branch comes inside. If you want to have a development environment just create a new repository and use it independently. Cheers
Hello, that isn’t Git philosophy. It’s suppose to have a develop branch and then when it’s done, merge to master one in order to deploy it…
Hi. I understand your point but in fact, the issue behind it is that Github doesn’t offer variety in terms of the code you can receive. In fact we only look at the push event and it’s not possible, at least for now, to identify if the code inside is a branch or not.
Does it work with submodules?
Hi closemarketing,
Thanks for buying and your comment. It was never tested with submodules but after checking GIT’s documentation I would say yes, as what is deployed is the whole code after the commit.
Regards
That’s nice, but i get a blank page… what’s the error?
While trying with the submodule? The file should have generated a log, please inspect its contents. Where do you get a blank page?
Hello, I can’t get the deploy right in the web. Where can i see the debug file?
Ok, I get No Payload
Hi,
If the correct deploy.php file is called properly, you should be able to check the log in the same folder. Can you check if the folder has write permissions?
Thanks Nuno
Thanks Nuno, I’ve solved.
Just bought and works fine. How secure is the PHP File? Is it 100% ok to use for production servers?
Hi dermemo,
Thanks for buying. Yes, it’s 100% secure as the file only works with the Username and Password you provide. Everything should be fine in the production server.
Regards
Does this script with with Atlassian Stash?
Hi,
Thanks for buying. No, unfortunately only Bitbucket and Github.
Thanks
O dinamarques está com a mania da perseguiçao. Boas vendas pessoal.
Obrigado, abraço!
Hey,
does the script work with shared hosters?
Hi,
Yes, 90% of our tests were on shared hosting and working good.
Thanks
With this script I can create my private repository on my server? There are limits users to the repository?
Hi keiornexo,
No, this doesn’t create a repository in your server, it uses Bitbucket and Github repositories (private or public) and retrieve the code from there everytime you commit, to your server.
Let us know if you have any other questions.
Regards
Hi NTKNetworks,
Interesting piece you got here. I just created a Private Repo at BitBucket and been thinking of how to automatically upload the files to the web server (Linux). Kindly confirm if this one is the solution I need?
Workstation >> BitBucket (Private Repo) >> Web Server (Linux)
Is that correct? If it is, will surely get it… Thanks in advance.
Hi raleighguevarra,
Yes, I confirm this works as you want. After you do the Commit to Bitbucket, the Hook will post the files to the script that will deploy the code accordingly. No more FTP upload!
Regards
i’ve this error from log: Unzip Failed
Hi,
How big is the .zip? For some servers we noticed that could happen.
Regards
it’s a permission problem. Folder need 777 but i’s a security issue? Is there a solution?
That will depend on your server. To unzip and write the files to the folder the script needs permission to write. Anyway if you were editing files manually on the FTP you also had to have the writing permissions. You gave the 777 and it’s good?
Awesome, well done. 
Thanks, glad you liked!