我使用工作区、本地文件和 -backend-config 使用 terraform 创建了不同环境(测试/产品)的基础设施,因此只有两个不同的文件,其他文件对于这两种环境都是通用的。
不幸的是,我没有找到一种方法以相同的方式破坏特定环境(无需为每个环境创建大量特定文件)。
我错过了什么吗?有办法做到吗?
任何帮助,将不胜感激。
提前致谢 !
问候,
弗洛朗
编辑:感谢您的回答,我设法使用工作区、本地变量和后端配置来做我想做的事情!
我想<h:panelGroup>在用户单击a时呈现a <h:commandLink>。
我可以让它在没有 ajax 的情况下工作,但整个页面都刷新了。当我尝试使用时<f:ajax>,不会调用该操作。
这是怎么引起的,我该如何解决?
这是我的链接的代码:
<a4j:outputPanel>
<h:commandLink action="#{ObjetEleve.showInfosPersos}" style="text-decoration:none;">
<a4j:ajax event="click" render=":corps:panelInfos"/>
<a4j:outputPanel layout="block" styleClass="menu_item_static_header">
<h:panelGroup layout="block" styleClass="menu_item_static">
<h:outputText value="#{(ObjetEleve.displayModifications) ? 'Retour au mur' : 'Modifier mes informations'}" />
</h:panelGroup>
</a4j:outputPanel>
</h:commandLink>
</a4j:outputPanel>
Run Code Online (Sandbox Code Playgroud)
这是我要呈现的面板的代码:
<h:panelGroup id="panelInfos">
<h:panelGroup id="infoPerso"
rendered="#{(ObjetEleve.displayModifications) ? true : false}"
layout="block">
<a4j:outputPanel id="infosPersos" layout="block">
<h:panelGrid width="580" columns="2" border="0">
<h:panelGrid id="panelInscription" columns="2" border="0"
cellspacing="0" cellpadding="0">
<a4j:outputPanel>
<h:outputText value="Nom" />
<h:outputText value="*" style="color:#ff0000;" />
</a4j:outputPanel>
<a4j:outputPanel>
<h:inputText id="nomInscription"
value="#{ObjetEleve.nom_eleve}" styleClass="inputbox"
required="true" requiredMessage="Nom …Run Code Online (Sandbox Code Playgroud) 我遇到了Alfresco和Python的问题:我想直接用Python上传一个新文件.每次我尝试时都会收到HTTP 500错误而没有详细信息......
我首先尝试使用CURL,以确保它正常工作,文件上传没有问题.
我使用了以下curl命令行:
url -X POST -uadmin:admin "http://localhost:8080/alfresco/service/api/upload" -F filedata=@/tmp/eeeeee.pdf -F siteid=test -F containerid=documentLibrary
Run Code Online (Sandbox Code Playgroud)
在我的Python脚本中,我尝试了PyCurl,现在是简单的urllib.我认为问题来自文件作为参数给出的方式.
使用PyCurl的Python代码:
c = pycurl.Curl()
params = {'containerid': 'documentLibrary', 'siteid': 'test', 'filedata': open('/tmp/eeeeee.pdf', 'rb')}
c.setopt(c.URL, 'http://localhost:8080/alfresco/service/api/upload')
c.setopt(c.POST, 1)
c.setopt(c.POSTFIELDS, urllib.urlencode(params))
c.setopt(c.USERPWD, 'admin:admin')
c.perform()
Run Code Online (Sandbox Code Playgroud)
此代码示例导致:
{
"code" : 500,
"name" : "Internal Error",
"description" : "An error inside the HTTP server which prevented it from fulfilling the request."
},
"message" : "04200017 Unexpected error occurred during upload of new content."
Run Code Online (Sandbox Code Playgroud)
有人知道如何实现这一目标吗?