Azure Web App Code Deployment not working

Krishnamohan Nadimpalli 406 Reputation points
2022-10-10T11:31:11.06+00:00

Hi All

I have an Azure Web App built on Node. When I am Pushing the code into the server provided in Deployment Center Tab, it does not reflect in the actual web app. What settings do I need to check for?

Push code through FTP from Local to Server. Below are the server details I am using? Do I need to push to some repo also, so that deployment is successful

249022-image.png

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,407 questions
0 comments No comments
{count} votes

Accepted answer
  1. ajkuma 24,971 Reputation points Microsoft Employee
    2022-10-11T20:34:07.883+00:00

    @Krishnamohan Nadimpalli ,

    To better assist you on this, just confirming on the following:

    • Do you receive any error messages?
    • What FTP Client are you using?

    Just to highlight, unlike Git-based and Zip deployment, FTP deployment doesn't support build automation, such as: dependency restores or generation of web.config etc. So, you need to generate these necessary files manually on your local machine, and then deploy them together with your app.

    See this doc for more info.

    From checking backend logs, I understand you’re deploying -"linux_fx_version": "NODE|14-lts".

    Node.js apps must be deployed with all the required NPM dependencies. The App Service deployment engine automatically runs npm install –production for you when you deploy a Git repository, or a Zip package with build automation enabled.

    As you’re deploy your files using FTP/S, you need to upload the required packages manually.
    Starting from Node 14 LTS, the container doesn't automatically start your app with PM2. To start your app with PM2, set the startup command to

    pm2 start <.js-file-or-PM2-file> --no-daemon

    --Ensure to use the --no-daemon argument because PM2 needs to run in the foreground for the container to work properly.

    Please check this doc for more info: Configure a Node.js app for Azure App Service


0 additional answers

Sort by: Most helpful