我有一个.net 6项目,并使用Github操作进行连续部署。当我改变并重新部署它的时候。工作流成功运行,但服务器需要很长时间(7-9小时)才能进行更改。
我已经试过重新运行工作流,但是没有工作。
我的工作流文件
name: Build and deploy container app to Azure Web App - CityTourist
on:
push:
branches:
- main
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Docker build and push
uses: mr-smithers-excellent/docker-build-push@v5
with:
image: donephit/city-discover-tourist-server
tags: v1, latest
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'CityTourist'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_b411f9150dc04ec7a5df33a041e87f5f }}
images: donephit/city-discover-tourist-server发布于 2022-06-08 05:48:17
此问题经常由应用程序级别的问题引起,如网络请求慢、应用程序代码或数据库查询效率低、内存/CPU使用率高或应用程序因错误而崩溃。
为此,故障排除分为三个不同的步骤,必须按照以下顺序执行:
有关更多信息,请参考文档的疑难解答。
https://stackoverflow.com/questions/72527306
复制相似问题