question

Thomas-9563 avatar image
0 Votes"
Thomas-9563 asked ·

Angular app + github action azure/webapps-deploy@v1 problem

Hi,

when I use the github action azure/webapps-deploy@v1 to deploy to a node12 app service the webapp files get pushed to /home/sites/wwwroot .
The webserver pm2 however seems to host another directory:

cat /opt/startup/default-static-site.js
var express = require('express');
var server = express();
var options = {
index: ['index.html','hostingstart.html']
};
server.use('/', express.static('/opt/startup', options));
server.listen(process.env.PORT);

since my files are not in this directory I am only getting the getting started page
I can fix this manually by

/home/site/wwwroot# cp -R ./* /opt/startup

but this does not seem right.

Is there a way for me to influence which directory is hosted by pm2 or where the github action deploys my files to?

regards Thomas



azure-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Thomas-9563 avatar image
0 Votes"
Thomas-9563 answered ·

worked around this using storage account + static website

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.