Capistrano, despite being written in Ruby, will deploy PHP. I've used it to deploy WordPress and SMF installs once or twice. The advantage here is that you don't have to choose git over svn or any CVS for that matter. You can keep your configs separate and link them in.
Ask HN: How do you deploy your PHP apps to production?
41–50 of 57 posts
Re: Ask HN: How do you deploy your PHP apps to production?
#42Subversion -- the website is a working copy of the production branch and I just do an svn update when changes need to be deployed. The whole thing is wrapped up in a script that makes it possible to one-click deploy changes. The biggest thing is the application is directory independent and auto-senses the host for database selection. This means that no changes are required to the application to run it in development,…
Same here, not as nicely automated though (still need to actually type 'svn update'). What I really like is the ability to instantly roll back to any version. Don't forget to block .svn directories in your apache config!
Re: Ask HN: How do you deploy your PHP apps to production?
#43I've tried out a few different tools now; the only two I've had any real success with were Capistrano and Fabric. Capistrano works well, great git integration, but it does have some rails-isms you need to override to make it work sanely. The capistrano-php extension can help with that: http://github.com/namics/capistrano-php but you'll need to use gem to manage it. You'll also definitely want the multistage plugin wh…
Re: Ask HN: How do you deploy your PHP apps to production?
#44Subversion -- the website is a working copy of the production branch and I just do an svn update when changes need to be deployed. The whole thing is wrapped up in a script that makes it possible to one-click deploy changes. The biggest thing is the application is directory independent and auto-senses the host for database selection. This means that no changes are required to the application to run it in development,…
Re: Ask HN: How do you deploy your PHP apps to production?
#45Subversion -- the website is a working copy of the production branch and I just do an svn update when changes need to be deployed. The whole thing is wrapped up in a script that makes it possible to one-click deploy changes. The biggest thing is the application is directory independent and auto-senses the host for database selection. This means that no changes are required to the application to run it in development,…
Re: Ask HN: How do you deploy your PHP apps to production?
#46Earlier quoted context omitted.
I assume they're `svn export`ing rather than `svn checkout`ing.
Yet I see at least one reference to `svn update` I'm scurred.
Re: Ask HN: How do you deploy your PHP apps to production?
#47Subversion -- the website is a working copy of the production branch and I just do an svn update when changes need to be deployed. The whole thing is wrapped up in a script that makes it possible to one-click deploy changes. The biggest thing is the application is directory independent and auto-senses the host for database selection. This means that no changes are required to the application to run it in development,…
We use Subversion as well. However, we use Ant scripts to do the build work. It makes updating our servers pretty straight forward.
Re: Ask HN: How do you deploy your PHP apps to production?
#48I've tried out a few different tools now; the only two I've had any real success with were Capistrano and Fabric. Capistrano works well, great git integration, but it does have some rails-isms you need to override to make it work sanely. The capistrano-php extension can help with that: http://github.com/namics/capistrano-php but you'll need to use gem to manage it. You'll also definitely want the multistage plugin wh…
Re: Ask HN: How do you deploy your PHP apps to production?
#49Subversion -- the website is a working copy of the production branch and I just do an svn update when changes need to be deployed. The whole thing is wrapped up in a script that makes it possible to one-click deploy changes. The biggest thing is the application is directory independent and auto-senses the host for database selection. This means that no changes are required to the application to run it in development,…
Same here, not as nicely automated though (still need to actually type 'svn update'). What I really like is the ability to instantly roll back to any version. Don't forget to block .svn directories in your apache config!
why stop at .svn, how about .~, .bak, .tmp, .swp !
Re: Ask HN: How do you deploy your PHP apps to production?
#50Earlier quoted context omitted.
I assume they're `svn export`ing rather than `svn checkout`ing.
Yet I see at least one reference to `svn update` I'm scurred.
One-liner if you're already using rewrite:
RewriteRule ^(./)?.svn/ - [F,L]
If you're not:
/.svn/"> Order deny,allow Deny from all