The Node.js toolset is run when the following conditions are met:
One of these files is found in the root of the repo:
- package.json
- package-lock.json
- yarn.lock
One of these files is found in the root of the repo:
- server.js
- app.js
If Oryx is not finding any condition met then it will not detect any platform or nodejs version, For more info check reference : https://github.com/microsoft/Oryx/blob/main/doc/runtimes/nodejs.md#detect
I see Gateway timeout error when accessing https://dpp-ui.azurewebsites.net
Kindly try the following steps to further isolate the issue.
- Review if your files are in root folder when doing git commits and if there is any
package.json/yarn.lock
and you have any application files likeapp.js, server.js
to detect a valid Node.js application. - When doing
ZipDeploy
and usingOryx build
check if file directories are correct inside the zip file and not having a subdirectory.
Also, I see this GitHub doc : During upload, each file is uploaded concurrently in 4MB chunks using a separate HTTPS connection per file. Chunked uploads are used so that in the event of a failure, the upload can be retried. If there is an error, a retry will be attempted after a certain period of time.
1.Upload just production dist folder in actions/upload-artifact@v2
action
2.Or Zip/unzip your application files between jobs.
Post the above change, modify the app setting to 'false' and then test.
SCM_DO_BUILD_DURING_DEPLOYMENT=false
If the answer helped (pointed, you in the right direction) > please click Accept Answer to benefit the community find answers quickly to similar question.