Newest
If you are not concerned about the release method, it is recommended that you execute ng build locally, and then drag and drop all the files in the <your project name>
folder directly to wwwroot, or use FTP to upload. Then modify startup cmd with npx serve -s
, it also can work.
Files in local.
Files in wwwroot on azure.
Previous
After testing, I think this should be a bug. If you must use node 14LTS, I suggest you raise a support ticket on portal for help.
Recurring problem:
Create a linux node 14LTS web app.
Create ng9 project, use vscode deploy and success. Open website and show us default page.
Add startup cmd with pm2 serve /home/site/wwwroot --no-daemon --spa
or pm2 serve /home/site/wwwroot/dist/<your project name> --no-daemon --spa
, and all failed.
Try to solve:
- I change
Major version
in Stack settings
, and the project runs normally.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…