 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
James Morris' Blog: Deploy a Silex App Using Git Push
by Chris Cornutt July 05, 2012 @ 09:35:40
James Morris has a new post to his blog showing you how you can deploy a Silex-based application via git and a post-receive hook on the server side.
Up until a few days ago I used to use a small bash deployment script to deploy a few simple sites to my live box. The process was a git archive and extract, then an rsync to the live site. Only inspecting it recently I realised that rsync no longer sent just the changes but all of the files, I'd never noticed before as the sites were so small the deploy was over very quickly. The rsync used to work fine before as I would deploy my current working code where the timestamps on files would match the server. Since I started using git at home for dev, the git archive method timestamps the files with the latest commit's timestamp. This messes up rsync.
His process involves a checked in version of Silex, a development branch, a push of the code to the live machine and an install script to set up Silex. He includes the "technical breakdown" and the information needed to replicate it - the .gitignore, setting up password-less SSHing, setting up the server and creating the git post-receive hook (a bash script).
voice your opinion now!
git push deploy silex application hook tutorial
Sean Coates' Blog: Deploy on push (from GitHub)
by Chris Cornutt June 05, 2012 @ 10:49:13
Sean Coates has a new post today sharing an example push process for the times when you either just need to push code (without the build process) or you're just deploying something simple - a "deploy on push" hook built into your github repository.
Sometimes, you just need to deploy code when it's ready. You don't need a build; you don't need to run tests - you just need to push code to a server. If you use git and GitHub (and I think you should be using GitHub), you can easily deploy on push. [...] There are really only three things that you need, in most cases, to make this work: a listener script, a deploy key and associated SSH configuration, and a post-receive hook.
He explains what each part of the process does and includes the simple PHP script that github calls to make the deployment (it's specific to his example, but you get the idea). He walks you through setting up the deploy key (a SSH key generated on your server) and how to get SSH to use this key when github comes knocking.
voice your opinion now!
github deployment push hook tutorial
Kevin Schroeder's Blog: Setting up a connection to the Zend Developer Cloud on Linux
by Chris Cornutt December 02, 2011 @ 10:04:10
Kevin Schroeder has a method in one of his latest posts for hooking your linux-based system into Zend's phpcloud platform, complete with an automatic upload (so you're not constantly sftp-ing).
Connecting with the Zend DevCloud in Linux is actually quite easy if you know how to use SFTP. [...] But, as I said in a previous post, I hate having to do command line stuff for each and every file or commit. I like things to work seamlessly. So what I did was write a PHP script that connects to the DevCloud (or any SSH-based endpoint for that matter) and then monitors all of the files and directories for changes, such as a creation, modification or deletion event.
His script (available on github) uses the PECL inotify package to work, but once its set up, you can have the PHP process running the script in the background, pointed at your web root, and have it upload automatically.
voice your opinion now!
inotify phpcloud zend cloud sftp automatic push
Giulio Pons' Blog: Send push notification to iPhone with PHP and pushme.to
by Chris Cornutt August 11, 2010 @ 13:15:14
In a new post to his blog Giulio Pons talks about how to send push notifications to an iPhone using the pushme.to application installed on the user's phone.
Push service is a technology that allows you to send alerts/notifications to a mobile device. Blackberry has its own push service, iPhone has its own, and also Android devices has their own push services. [...] I want to send push to my iPhone, but I'm not able to develop an iPhone application that receive push alerts, and I don't want to send only email alerts.
You set up the application on your phone and make a widget on their site for your application to use. Included in the post is also the PHP you can use to connect to the pushme.to service (using a curl POST request to send form encoded info to their servers).
voice your opinion now!
push notification iphone pushmeto service curl
ThinkPHP Blog: Comet in conjunction with a PHP socket server - server-client communication
by Chris Cornutt September 02, 2008 @ 08:41:55
In a new post to the ThinkPHP blog today there's a look at combining Comet with PHP to make a simple method for the client to talk back to the server outside the usual methods.
If a couple of users have opened the application there are already some hundred or thousand requests per second. The outcome of this is a big load for your server and a highly increased traffic - your server will in a senseless way be overloaded. In conclusion, our problem is the enormous amount of polling without knowing whether the server really wants to send a new push. Let's turn the initial situation around. And we get the solution to our problem: Comet.
With Coment, the model changes and the request is "cached" on the server-side automatically in a single Comet instance. Coordinate this with another recommendation of theirs, a PHP socket server, and you can do some pretty interesting things.
voice your opinion now!
communication socket server comet ajax push pull
Chris Hartjes' Blog: How To HTTP-PUT A File Somewhere Using PHP
by Chris Cornutt January 14, 2008 @ 09:39:00
Chris Hartjes has a quick post (but complete with code) about moving files around a bit differently than the norm - it's his method for using a HTTP-PUT to push a file out.
A work project is getting close to 0.1 status. Pretty underwhelming, I know. One of the last 'milestones' for 0.1 is taking these wonderful XML documents that my web app creates and sends them to an internal web service. This web service will accept documents via an HTTP PUT [...] so I dug around a bit on the web and put together some code.
The code is a generic "publish" method that opens a stream to the remote server and, in a binary format, pushes the contents of a local file and parses out the response.
voice your opinion now!
http put remote location file push http put remote location file push
|
Community Events
Don't see your event here? Let us know!
|