-1

I have a problem with hosting app on Azure Web App. I need to host an app with javascript files. Thanks

I am able to host plain HTML and CSS website when I have all the files in the "src" folder. I have these relative paths in the "head" part of the code <link href="../lib/animate/animate.min.css" rel="stylesheet"> but they do not work. What should I do?

  • 4
    What do you mean by "they do not work"? – evolutionxbox Aug 11 '23 at 14:12
  • When I open the page locally in my browser the animations work but when I open the page that is hosted on Azure the animations just are not there. – Michal Branda Aug 11 '23 at 14:22
  • Open your browser DevTools and go to the Network tab, then refresh the page. Are there any 404 errors for files not being loaded? If so this is probably your problem. The file is either not there at all, or not at the path you expect. – Chris Barr Aug 11 '23 at 14:24
  • I do not have any js related errors there. Only missing JPG but I know about them. – Michal Branda Aug 11 '23 at 14:36
  • @MichalBranda They didn't ask about JS errors. – evolutionxbox Aug 11 '23 at 15:30
  • There are no other errors than missing JPGs. – Michal Branda Aug 11 '23 at 15:40
  • Oh, I am so sorry, I was looking at the local page. It seems that all files that are not in "src" directory are missing. – Michal Branda Aug 11 '23 at 15:45
  • But the problem is that I cannot copy the files into "src" folder because if I do so Azure does not build my website: "The app build failed to produce artifact folder: './src'. Please ensure this property is configured correctly in your workflow file." – Michal Branda Aug 11 '23 at 15:48

0 Answers0