![]() If you’ve ever wanted to display your latest Twitter tweets on a website, TweetPHP lets you do that using PHP. TweetPHP: Display tweets on your website using PHP The deployment script will fetch the changes into a cloned repository on your server, and checkout files to your public web directory. ![]() When Bitbucket receives the commit it will notify a deployment script on your server.When you’re ready to deploy, commit your changes and push them to Bitbucket.Here’s what your deployment workflow will look like once we’re done: Setup a hook on Bitbucket and an associated deployment script on your server.Clone your Bitbucket repository on your web server.Set up SSH keys so your server can talk to Bitbucket.There are basically three things you need to do to make this work: I use Bitbucket for hosting my private repositories, and have recently implemented a deployment process that integrates with Bitbucket’s POST hooks feature. If you’re already using git to version control your project then you probably won’t even need to modify your existing workflow, once the initial setup is done. What makes Git deployments attractive is how frictionless the process is: make some changes to your project, merge them into your production branch, push the commit to a remote repository and like magic the changes are live! Git knows which files need to be changed or deleted, so you don’t have to think about it. Git may not have been designed as a deployment tool, but for small projects it can do the job quite nicely. I no longer use this deployment method and won’t be updating my tutorial or answering comments, but I have left the comment section open so that readers can post their tips and help each other out. One of my readers has created an updated version, and I recommend trying that instead. ![]() Important: Bitbucket have changed how webhooks function, and the technique described in this post will no longer work without modification.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |