One of the excellently useful tools by the awesome aTech Media is the handy deployment tool DeployHQ. It’s incredibly easy to use – in fact they say “So simple, your Nan could deploy your project!” And once it’s all set up it really is that simple. I won’t go into the details of how it all works because it’s easy enough to sign up for a trial yourself and have a play!
One thing I did run in to was configuring my FTP server. It turns out that the user that DeployHQ logs in as needs write access! Whodathunkit, rite?!?! So anyway, make sure the FTP user you’ve created for DeployHQ to deploy to your FTP server has the right access to read, write and delete files. DeployHQ will just say it can’t connect, rather than a useful message such as “we connected fine, but couldn’t write a test file” because that’s what they do – to check your FTP is set up OK they try uploading a file and deleting it.
But the whole last paragraph is a bit null and void really because the best way to deploy with DeployHQ is to use SSH/SFTP server to deploy. It gives you the awesomely powerful tool of being able to not just upload, but run commands before or after, for example you might need to create some directories before the upload, or perhaps delete a cache or something. Or after upload you might need to chmod/chown a file, or check a project (e.g. Zend Framework) out using SVN once your own project is uploaded. SFTP makes this so much more flexible on DeployHQ, so I highly recommend setting that up. Not only is it easy, but you can do SSH key authentication instead of user/passwords. Huzzah!
While you’re looking at handy tools, why not sign up to the super useful and powerful project management and code hosting tool CodebaseHQ (please use this link as it’s an affiliate link!).
OK, so far all that I’ve managed to do is install it and have a dabble with the config pages and go “oooh that looks pretty”, so this isn’t a hardcore review or anything.