通过git和更新对这些资产的引用自动将资产部署到Rackspace CDN? [英] Automatically deploying assets to Rackspace CDN via git and updating references to those assets?

查看:195
本文介绍了通过git和更新对这些资产的引用自动将资产部署到Rackspace CDN?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一些帮助,设计一个自动部署Web应用程序的资产(图像,css,js)到Rackspace的云文件(CDN)服务的策略。

I'm looking for some help in designing a strategy to automate deployment of a web application's assets (images, css, js) to Rackspace's Cloud Files (CDN) service.

我目前使用git push将Web应用程序部署到远程服务器。所以这里有一种方式我认为这可能会发生。有没有更好/更清洁的方法?

I currently use git push to deploy the web app to a remote server. So here's one way I'm thinking this could happen. Are there any better/cleaner methods?


  • 开发更改资产文件(css,js或图像)

  • Dev提交更改

  • 将他的更改推送到服务器

  • 资源会自动重命名,以消除缓存问题(追加git版本?)并发送到CDN

  • 引用代码将自动更新为新的文件名

  • Dev makes changes to an asset file (css, js, or an image)
  • Dev commits his changes
  • Dev pushes his changes to the server
  • Assets are automatically renamed to eliminate cache issues (append git version?) and sent to the CDN
  • Referencing code would be automatically updated to new filename

FYI,这是CodeIgniter 2.x中的一个PHP应用程序,如果它很重要。

FYI, this is a PHP app in CodeIgniter 2.x if it matters.

很高兴听到任何想法,替代与否。

Happy to hear any ideas, alternative or not.

推荐答案

我没有找到任何东西来自动执行。

I've not found anything to automatically do it.

您可以使用机架空间Cloud File API( http://www.rackspace.com/cloud/cloud_hosting_products/files/ api / )将文件上传到Rackspace的CDN识别容器。

You can use the Rack Space Cloud File API ( http://www.rackspace.com/cloud/cloud_hosting_products/files/api/ ) to upload files to Rackspace's CDN aware containers.

这篇关于通过git和更新对这些资产的引用自动将资产部署到Rackspace CDN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆