doushi7314 2010-05-17 19:24
浏览 15
已采纳

跨VARIOUS文件和格式在特定时间可靠地更新内容的最佳方式?

Let's say I have to push a change live at 8 AM EST on Tuesday May 18th - this change is across various files:

  • xml file
  • php file
  • 30x static html files with no php processing enabled

all of these are hosted on a linux server with cron.

Is it reliable setting up a cron job to call a script which takes these files, for example:

  • templates/template.php
  • navigation.xml
  • specials-hot-deal.html

and appends '-old' to those, along with renaming the live files I'll have on the server "template-new.php", "navigation-new.xml" at that approximate time?

Is this reliable or should I just manually do this? Of course since I'm not familiar with cron I'll probably have to test it out today. Any weird cron gotchas I should know about?

  • 写回答

1条回答 默认 最新

  • dongtun3259 2010-05-17 20:15
    关注

    im not sure that using a cron job for deploying changes is the best idea. you may be able to accomplish this, but usually cron is used for automated tasks related to the app such as sending out mails, deleting things older than certain date ect, removing stray images.

    is you application in version control such as svn or git. could you do your scheduled deployment through your version control?

    just a thought.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测