Is there any guide to manage to deploy.sh script in Azure Web App on Linux for nodejs app? I am consistently getting deployment errors on running the command on the continuous deployment. The error starts with the 1st deployment script when I first setup the continuous deployment. The error mostly happened at "bower install" command where bower command is not found with bash command line.
To overcome this issue, I performed the following:
- Login to Kudu tool, Bash (ssh is not working on the 1st time)
- Run "npm install --production", but this will not complete the installation
- Run "bower install", getting error bower not install - tried with npm install -g bower - it's still not solving the problem.
- somehow, I tried several times to open/close Kudu tool, until SSH starts to load(miracle)
- with SSH terminal, I am able to perform "npm install -g bower" and "bower install", which concluded the installation and I'm able to load my website
However, the status of the deployment will still stay failed and subsequence deployment does not seem to have been improved at all as it failed at the deployment script.
The following is the error generated from subsequence deployment:
Command: "/home/site/deployments/tools/deploy.sh" /opt/Kudu/bin/Scripts/starter.sh: /home/site/deployments/tools/deploy.sh: /bin/bash^M: bad interpreter: No such file or directory /opt/Kudu/bin/Scripts/starter.sh: line 2: /home/site/deployments/tools/deploy.sh: Success /opt/Kudu/bin/Scripts/starter.sh: /home/site/deployments/tools/deploy.sh: /bin/bash^M: bad interpreter: No such file or directory\n/opt/Kudu/bin/Scripts/starter.sh: line 2: /home/site/deployments/tools/deploy.sh: Success\n/opt/Kudu/bin/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh"
Hope experts from MS can help me on this matter. Thank you.
Best regards, Szelee