Re:Ask HN: How do you deploy your PHP apps to production?
by JonnieCache on Thursday October 14, 2010 @01:07PM
(#1791663)
I assume they're `svn export`ing rather than `svn checkout`ing.
[ Parent
| on HN ]
Re:Ask HN: How do you deploy your PHP apps to production?
by unsane1 on Thursday October 14, 2010 @01:10PM
(#1791668)
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?
by gregjor on Thursday October 14, 2010 @02:19PM
(#1791952)
Read the whole comment. It's easy to configure Apache or whatever HTTP server you're using to not serve anything in .svn directories. Duh.
Re:Ask HN: How do you deploy your PHP apps to production?
by bradleyland on Thursday October 14, 2010 @04:51PM
(#1792547)
Don't be afraid, just configure your Apache server correctly and you'll be fine.
One-liner if you're already using rewrite:
RewriteRule ^(./)?.svn/ - [F,L]
If you're not:
<Directorymatch "^/./.svn/"> Order deny,allow Deny from all </Directorymatch>