我想避免将生成的JavaScript文件添加到git源代码控制存储库.在部署文件之前,Azure Git Deploy是否支持运行添加命令来运行构建?
我一直在为Azure网站尝试新的远程调试功能,但我想我可能遇到过一个问题:如果我使用Web Publish,我只能让它正常工作.如果我使用本地git deploy部署站点,则调试器会附加,但不会加载调试符号(断点显示警告).
我尝试将Release配置设置为包含PDB文件(因为Azure的git deploy默认使用Release配置),并使用此处azure site deploymentscript详述的命令生成的自定义部署脚本,并设置build命令以使用Debug配置.在这两种情况下,我仍然遇到与未加载符号相同的问题.
我觉得问题可能是以下之一:
最终我希望编写一些自动部署脚本,而且我更愿意使用git部署而不是Web Publish来实现这一目标.让我感到困惑的是,即使将Release配置设置为包含PDB文件,这也会失败.它确实让我觉得必须在Azure for Web Publish上做一些额外的工作,而不是git部署.有没有人对这可能导致差异的想法有什么看法?
我将包含由azure site deploymentscript参考生成的自定义部署脚本,并显示它使用的构建标志.相关部分在该:: Deployment部分之后.
@if "%SCM_TRACE_LEVEL%" NEQ "4" @echo off
:: ----------------------
:: KUDU Deployment Script
:: Version: 0.1.5
:: ----------------------
:: Prerequisites
:: -------------
:: Verify node.js installed
where node 2>nul >nul
IF %ERRORLEVEL% NEQ 0 (
echo Missing node.js executable, please install node.js, if already installed make sure it can be reached from current …Run Code Online (Sandbox Code Playgroud) 我尝试将我的应用程序服务从 git localrep 从 azure 平台克隆到本地环境(在 PC 上)。但当我这样做时
git clone < https://adminusername@my.azure.url.torepo/appser.git>
Run Code Online (Sandbox Code Playgroud)
控制台询问我使用管理员用户名登录进行身份验证。但密码是多少?它不是 MicrosoftAppPassword,当我尝试使用它时,身份验证失败。
密码是什么?
我正在尝试在我的自动git部署中包含TypeScript文件,这样我就可以展示我正在构建的框架的代码.但是,每当我部署到azurewebsites时,部署都不包含TypeScript文件.
有问题的网站:http://endgate-samples.azurewebsites.net/Samples/AnimatedSprites/
我尝试过的:
通过将TypeScript属性设置为"始终复制",将所有TypeScript文件复制到输出文件夹.这个问题是我需要更改对所有文件的引用(不想这样做).
MSBuild管道.这适用于文件系统部署,但不适用于Web部署... https://github.com/NTaylorMullen/EndGate/blob/master/EndGate/samples/EndGate.Core.JS.Samples/EndGate.Core.JS.Samples.csproj #L896-L909.
手动发布到FTP端点(像魅力一样工作),但不是自动的.还需要msbuild管道(#2)
我做错了什么或我能做什么(我还没试过)让我的TypeScript文件自动部署?
azure azure-deployment azure-web-sites azure-git-deployment typescript
我创建了一个新的Azure AD帐户和一个Azure节点Web应用程序.我可以登录使用azure-cli,我可以git push deploy.
但是,每次我希望能够使用ssh密钥进行身份验证时,而不是获取密码提示.在azure门户设置面板中有一个管理证书部分,并且有一个azure account cert export来自azure CLI 的选项,但我不确定这些是我正在寻找的.
我试图通过"远程git repo"方法将项目部署到azure.但是在我的repo中,实际的节点应用程序是几个目录.因此,当推送repo时,Azure不会执行任何操作.
有没有办法将azure网站配置为从隐藏在repo中的目录运行?
deployment azure node.js continuous-deployment azure-git-deployment
我在Azure上有一个连接到github的webapp来进行持续部署.有没有快速的方法来更改它连接的分支,或者我必须断开然后再次连接以选择新的分支?
问题是Azure有一个错误,当我断开连接时,我只能在没有错误的情况下再次连接,在断开连接15或30分钟后...
我找不到与在 Azure DevOps 中的特定存储库上部署密钥相关的任何文档。
这是 ADO 平台的可能性吗?这是所有其他 git SCM 提供商广泛支持的功能,所以我认为 ADO 也有管理它的方法?
git ssh-keys continuous-deployment azure-git-deployment azure-devops
我试图在提交消息中不包含工作项 ID 的情况下限制 GIT 提交。即#workitemID #123
请为 azure DevOps GIT Hooks 上的服务器端配置提出一个解决方案。
githooks azure-git-deployment azure-devops azure-service-hooks
错误消息是(TF401027:您需要 Git 'GenericContribute' 权限才能执行此操作。详细信息:身份 'Build\8ec5f0f1-6bca-4182-bb3e-2d47a64262bf',范围 'repository'。)
我已获取该 GUID 并确认它所代表的帐户拥有存储库上的所有必要权限,以及更多权限:
目标分支未锁定,并且未应用任何策略。
我的管道的 YAML 相关部分如下所示:
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
git config --global user.email "me@example.com"
git config --global user.name "Build Agent1"
pwsh: true
- checkout: self
persistCredentials: true
- task: PowerShell@2
inputs:
targetType: 'inline'
pwsh: true
script: |
Write-Host "------------------------------------------------------------"
# Update the file src\version.ts here
git add src\version.ts
git commit -m "Version bump from build pipeline [skip ci]"
git push origin HEAD:Eval …Run Code Online (Sandbox Code Playgroud) git azure-git-deployment azure-pipelines azure-pipelines-yaml
本示例说明如何创建通过Azure资源管理器(ARM)模板链接到GitHub存储库的Web应用程序:https : //github.com/Azure/azure-quickstart-templates/tree/master/201-web-app -github-deploy
这是依赖资源的代码段:
{
"apiVersion": "2015-04-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]"
],
"properties": {
"RepoUrl": "[parameters('repoURL')]",
"branch": "[parameters('branch')]",
"IsManualIntegration": true
}
}
Run Code Online (Sandbox Code Playgroud)
但是,我想创建一个网站,从我自己的本地git repo进行部署。如何使用ARM模板完成此操作?
更新:澄清我要做什么:我想创建一个具有附加的Git存储库的Web应用程序。请参阅本文:https : //azure.microsoft.com/zh-cn/documentation/articles/web-sites-publish-source-control/-我要自动执行的步骤在“启用... Web应用程序存储库” –我不想通过Azure门户进行操作
azure azure-web-sites azure-git-deployment azure-resource-manager
azure ×8
git ×4
azure-devops ×3
typescript ×2
deployment ×1
githooks ×1
github ×1
node.js ×1
ssh-keys ×1