Hi, I've created nodejs service and deployed it to Azure Web App service, it works as expected.
So, I have resource group and existing Web App service.
Now, I want to add static HTML file, to show it when user goes to https://my-mars-web-app.azurewebsites.net/
To achieve it, I have tried to run az webapp up -g mars-app -n my-mars-web-app --html, but every time I'm receiving:
The webapp my-mars-web-app is a Linux app. The code detected at '/home/serhii/azure-website' will default to '<module 'os' from '/opt/az/lib/python3.6/os.py'>'. Please create a new app to continue this operation.
Because of above error, I have added index.html to dist diretory in my backend app
app.get('/', function (req, res) {
res.sendfile('dist/index.html');
});
and it works. But it is for sure a bad practice.
My question:
What the best practice to add static HTML files to Web App service?
Thanks in advance