We deploy our application to Azure App Service (Linux) through Azure DevOps Zip Deploy. When we deploy changes to any file except startup.sh the deployment succeeds.
However, as soon as we change the startup.sh and try to deploy we get the following error:
"Rsync: rename "/home/site/wwwroot/.startup.sh.opLS0x" -> "startup.sh": No such file or directory"
When using SSH to access the container (ourdomain.scm.azurewebsites.net/webssh/hostcd) any operation involving the startup.sh file fails even though the startup.sh file does show up when using the "ls" command:
cat: startup.sh: No such file or directory
This problem can be resolved by stopping the App Service and starting it again. However, I believe we should be able to deploy without this trick because it may lead to downtime if not carefully executed.
Does anyone have an idea on how to resolve this issue?