Nodejs app works locally and also works on app service if deployed to Azure app service Linux directly from visual studio but does not work when deployed using azure devops
Artifact files and folders using visual studio -
config
demo
dist
src
gulpfile.babel.js
node_modules
package-lock.json
package.json
postcss.config.js
web.config
node_modules.tar.gz
oryx-manifest.toml
Artifact files using Azure devops -
config
demo
dist
src
gulpfile.babel.js
node_modules
package-lock.json
package.json
postcss.config.js
web.config
When I am trying to deploy using azure devops App service deploy task deployment works but URL is not working and logs errors are -
container test didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging.
2020-09-12T05:37:46.165Z INFO - Stopping site because it failed during startup.
2020-09-12T05:53:51.152Z INFO - Starting container for site
2020-09-12T05:53:51.153Z INFO - docker run -d -p 1861:8080 --name -e WEBSITE_SITE_NAME=test -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=test.azurewebsites.net -e
I don't have any docker-file , if ports is the issue, then why its works when I publish to Azure app service using visual studio?
These are my mentioned ports
serve({
port: process.env.PORT || 3000,
open: true,
server: {
baseDir: 'src'
},