jeudi 17 décembre 2020

Deploying using apache2, static files from assets folder are not returned

My application uses node+express, the app.js returns the index.html main view file with the res.render. The view has some styles from assets/styles and scripts from assets/scripts.

When i run the app using : npm run build + node app.js, the dev-mode server starts correctly and the browser have acces to all the static files correctly.

When starting the apache service, only the html file is returned, and the static files are not.

Screenshots:

Browser Console logs

Only html display

Browser requests status




Aucun commentaire:

Enregistrer un commentaire