Please help me complete guide for deploying my application to heroku
I have done this job but in my url shows application error.
Related
So I’ve setup Strapi Backend on a Windows Server 2019 running IIS. I’ve written up this document with all the steps I’ve followed to get where I’m stuck now.
It’s a release pipeline on Azure DevOps but it looks like it’s not building the backend and then it’s starting the backend but when I go to /admin I get a error : Warning : An error occurred while requesting the API which indicated the backend didn’t build correctly.
I’ve ran the npm run build on the actual server and it works perfect. Obviously then running the npm run start and that also works!
Anyone perhaps ran into this issue before and might have some insights and/or help. Or any Azure DevOps experts here!
PS. Found this setup details but it’s for Ubuntu only and Azure App Services.
I have spent many days but still can not get this to work.
I have setup a deployment pipeline for NextJS I have the dist folder and I'm also copying the node modules folder etc. The build pipeline works, makes a package which is then deployed to a Azure Linux Web App.
Problem is can not hit the application
I look into the logs and I can see the app has started but for some reason the container fails and the site never works.
I'm pulling my hair out here I have tried everything, read every guide I can find but nothing seems to work. Help me stack-bi-wan-overflow your my only hope.
As you have confirmed in your comment , Converting this to answer to help other community members.
To achieve the above requirement make sure that you have used express instead of using fastify . As fastify must have different network configuration which can not connect with container.
For more information please refer the below links:-
SO THREAD: nestjs to azure windows app service - web.config settings & Angular CLI app not running when deploying to Linux App Service
Blog:- Deploy and run Nest js app to azure
I am trying to deploy an application to windows based App Service in Azure using Azure DevOps Pipeline. For the first time, I don't see any issues and deployment got successful. But the next time, it got failed. I am getting the below error.
Failed to deploy web package to App Service.
To debug further please check Kudu stack trace URL : https://$XYZ-dev:***#XYZ-dev.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace
Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
When I go to the App Service in Azure Portal and from Deployment Center if I disconnect and trigger the pipeline, it get successful. But again next time it got failed.
Please anyone let us know the fix for this issue.
Thanks.
I have an Azure Web App (WebAppLinux) running an Angular application. The deployment is based on the Azure WebApp#1 task in an Azure pipeline.
Everything was fine until today. Without anyone having done a deployment, the website only shows an index page with the files stored in the home directory.
A re-deployment through the CI/CD pipeline is still successful. However, the error remains.
Was there any change to the Azure App Service that made my application incompatible?
The answer of LuisDev99 in https://stackoverflow.com/a/61707805/3809334 has solved the problem.
We had to add
pm2 serve /home/site/wwwroot --no-daemon --spa
to the Startup Command under Configuration, select the tab -> General Settings
In the past we had a startup script that called npx serve -s within our Angular application.
It seems that this way did not work anymore over the weekend. Maybe because there was a configuration change in the WebApp by Microsoft
Not an answer, but if you file an issue in https://github.com/Azure-App-Service/Linux/issues, that will help proceed with the next steps for investigation.
I am deploying a WAR file into an app server of Azure, My pipeline build is success but my the web app is not showing in the server URL, can someone tell me where I missed?
2020-04-20T14:01:09.3660179Z ##[section]Starting: Deploy War to Azure App Service
2020-04-20T14:01:09.3766431Z
==============================================================================
2020-04-20T14:01:09.3766892Z Task : Azure App Service deploy
2020-04-20T14:01:09.3767548Z Description : Deploy to Azure App Service a web, mobile, or API app
using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2020-04-20T14:01:09.3767944Z Version : 4.163.5
2020-04-20T14:01:09.3768213Z Author : Microsoft Corporation
2020-04-20T14:01:09.3768522Z Help : https://aka.ms/azureappservicetroubleshooting
2020-04-20T14:01:09.3768901Z
==============================================================================
2020-04-20T14:01:10.5416719Z Got service connection details for Azure App Service:'jpetstore01'
2020-04-20T14:01:13.1232245Z Package deployment using WAR Deploy initiated.
2020-04-20T14:01:28.4292592Z Deploy logs can be viewed at
https://jpetstore01.scm.azurewebsites.net/api/deployments/9d03f1b9973b489e898d2aedfd5f7129/log
2020-04-20T14:01:28.4294018Z Successfully deployed web package to App Service.
2020-04-20T14:01:34.2874810Z Successfully updated App Service configuration details
2020-04-20T14:01:36.5781456Z Successfully updated deployment History at
https://jpetstore01.scm.azurewebsites.net/api/deployments/41587391294722
2020-04-20T14:01:38.3127393Z App Service Application URL: http://jpetstore01.azurewebsites.net
2020-04-20T14:01:41.0462523Z ##[section]Finishing: Deploy War to Azure App Service
This is my pipeline log, It is saying deployment successfull but i am not able to get the web app in http://jpetstore01.azurewebsites.net. can someone help me with this?
From the logs shared by #LoGan, it appears that the war file was deployed successfully by the Azure DevOps task, but the application is running into some errors during startup.
Please navigate to https://<sitename>.scm.azurewebsites.net/DebugConsole and then browse to the D:\home\LogFiles\Application directory. You should see one or more files named catalina.*.log. These are the log files generated by Tomcat, which should provide you some hints about what's going wrong with the application during startup.