TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Simple deploy script for PHP applications

7 点作者 cm超过 15 年前

4 条评论

travisp超过 15 年前
FYI, I've had some really bad problems crop up when using sym links to deploy php releases (php selectively using files from older versions), and I've encountered others who've had similar problems. I don't know if it's been fixed in newer versions, but problems include the realpath cache not getting properly reset (and clearstatcache() wouldn't let you clear the realpath cache until 5.3).<p>Here's someone else who had this problem, although he claims cycling Apache would fix it (it didn't for me):<p><a href="http://www.mikebrittain.com/blog/2009/05/12/case-against-using-symlinks-for-code-promotion/" rel="nofollow">http://www.mikebrittain.com/blog/2009/05/12/case-against-usi...</a>
dugmartin超过 15 年前
Question for the peanut gallery: how do you handle user uploaded files that are not in version control if you swap out the whole site?<p>Create post-update, pre-swap symlinks from inside the new docroot to directories outside of the swapped docroot?
评论 #1092845 未加载
zacharydanger超过 15 年前
I prefer phing and a git post-update hook myself.
jasonlbaptiste超过 15 年前
this is useful, thank you.