akamai

jenkins发布程序触发shell调用python脚本刷新akamai cdn api

倖福魔咒の 提交于 2019-11-27 10:37:47
刷新cdn的流程: jenkins获取git中的代码,触发脚本推送到生产环境中(即cdn的源站) --> 触发脚本获取git工作目录的更新列表,将更新列表拼凑成带域名信息的url,写入到目录中 --> 触发python脚本读取目录中的url发送给akamai的api进行cdn的刷新 参考文档创建client api,此次我们的账号没有创建client api的权限,需要管理员处理 文档地址:https://developer.akamai.com/api/getting-started#beforeyoubegin 创建和api交互的client api后会得到类似如下信息 client_secret = "pass" host = "host.purge.akamaiapis.net" access_token = "token" client_token = "client_token" api参考地址: https://github.com/akamai/api-kickstart jenkins中的shell脚本 [root@jenkins:/usr/local/worksh/jeninks_task]# cat neveragain_chinasoft_com.sh #!/bin/bash #########################################

Prevent suffix from being added to resources when page loads

喜你入骨 提交于 2019-11-27 04:16:35
I have a JSF2 application running and working no problem. The issue I am having with JSF is with the resource bundle. All resources have the .xhtml suffix appended to it. So main.css becomes main.css.xhtml when loaded in the browser. I would like to have it so the .xhtml isn't apended to the resources (don't mind about the pages themselves). Is there a way where we can NOT have .xhtml appended to resources? I would ideally not have to change the internal workings of the site. I have listed ideas below, but I have to say I don't really like these. Hoping for a solution somewhere? I am using

Prevent suffix from being added to resources when page loads

妖精的绣舞 提交于 2019-11-26 11:07:34
问题 I have a JSF2 application running and working no problem. The issue I am having with JSF is with the resource bundle. All resources have the .xhtml suffix appended to it. So main.css becomes main.css.xhtml when loaded in the browser. I would like to have it so the .xhtml isn\'t apended to the resources (don\'t mind about the pages themselves). Is there a way where we can NOT have .xhtml appended to resources? I would ideally not have to change the internal workings of the site. I have listed