Download - Publiquei meu site e não funcionou, e agora?
![Page 1: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/1.jpg)
w w w. l a m b d a 3 . c o m .b r
Publiquei meu site e não funcionou. E agora?
Mahmoud Ali – @akamudVictor Cavalcante – @vcavalcante
![Page 2: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/2.jpg)
Quem somos
Victor Cavalcante• Desenvolvedor Web• Microsoft MVP de ASP.NET• [email protected]• @vcavalcante
Mahmoud Ali• Desenvolvedor na Lambda3• [email protected]• @akamud
![Page 3: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/3.jpg)
Nossa aplicação
• ASP.NET Core• .NET Core• Entity Framework (In-Memory)
![Page 4: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/4.jpg)
![Page 5: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/5.jpg)
![Page 6: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/6.jpg)
![Page 7: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/7.jpg)
![Page 8: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/8.jpg)
Dem
oBotando pra funcionar!
![Page 9: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/9.jpg)
![Page 10: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/10.jpg)
Logs
![Page 11: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/11.jpg)
Dem
oHabilitando Logs
![Page 12: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/12.jpg)
Kudu
![Page 13: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/13.jpg)
Kudu/SCM – Site Control Manager
• Engine por trás do Git Deployment no Azure Web Sites• Process Explorer• Cmd• Powershell• Logs• Debug das Application Settings do Web Site• Alteração/Exclusão de arquivos• Informações do Ambiente• Open Source
![Page 14: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/14.jpg)
Dem
oKudu
![Page 15: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/15.jpg)
Logging
• Totalmente configurável• Pode ser injetado sempre que necessário• Múltiplos providers• Pode ser filtrado• 6 níveis: Trace, Debug, Information, Warning, Error e Critical
![Page 16: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/16.jpg)
Dem
oASP.NET Core Logging
![Page 17: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/17.jpg)
Outras abordagens
• Logging Providers Externos (Azure Blob/Storage)• Páginas de erro habilitadas• Application Insights• Debugging remoto
![Page 18: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/18.jpg)
Referências
• https://github.com/projectkudu/kudu• https://github.com/akamud/AzureWebApp• https://
docs.microsoft.com/en-us/aspnet/core/fundamentals/logging• https://
docs.microsoft.com/en-us/aspnet/core/hosting/aspnet-core-module
• https://docs.microsoft.com/en-us/aspnet/core/fundamentals/error-handling
![Page 19: Publiquei meu site e não funcionou, e agora?](https://reader033.vdocuments.site/reader033/viewer/2022061608/5887da3f1a28abfb678b54f3/html5/thumbnails/19.jpg)
w w w. l a m b d a 3 . c o m .b r
Obrigado!
@akamud@vcavalcante