I have several php applications for various projects and the code is deployed in production using either rsync or subversion. But I want all apps to be deployed with scripts using one method for consistency. Which methods have been successful for you?
Ask HN: How do you deploy your PHP apps to production?
1–10 of 57 posts
Re: Ask HN: How do you deploy your PHP apps to production?
#2GIT!
'nuff said.
Re: Ask HN: How do you deploy your PHP apps to production?
#3We have a script that tars up projects or specific files and uploads them and puts them in place, but lately we've been moving towards plain svn.
If it were up to me, it'd be git, with separate branches for production and beta for easy merging.
Re: Ask HN: How do you deploy your PHP apps to production?
#4I wrote this up when I was dealing with the same issue a few months back - a simple deploy script for PHP applications using git: http://themetricsystem.rjmetrics.com/2010/02/01/simple-deplo...
Re: Ask HN: How do you deploy your PHP apps to production?
#5ftp a tarball then untar, or rsync.
Re: Ask HN: How do you deploy your PHP apps to production?
#6I use git, with three levels, dev (active development), stage (current stable version), and production. All three have different branches. Then I have a bash script that configures them accordingly.
Re: Ask HN: How do you deploy your PHP apps to production?
#7We use Trunks (http://www.trunksapp.com) to host our SVN repos, then have post-commit hook fire an HTTP request to the production staging server to check out the latest revision.
We manually initiate an export from the live server, although we likely will look in the commit message for a keyword (like [live]) and initiate from there.
Re: Ask HN: How do you deploy your PHP apps to production?
#8Git or rsync
Re: Ask HN: How do you deploy your PHP apps to production?
#9Beanstalk Hosted SVN/GIT has deployment tools. I haven't used them as I do my pulls manually.
Re: Ask HN: How do you deploy your PHP apps to production?
#10bash script checks out SVN code, then uses a configuration file to build bundles of JS and CSS files using YUI-compressor, and add query string timestamps to CSS images for cache busting. After all that, the code is rsync'd to various web servers