- Flask will serve production app in dist folder
- NO Static folder needed!
- This is done by requesting javascript and css files as args to root url
- This makes developement and deployment simple with the Angular frontend UI and Flask backend together in one folder
- route added to serve content in assets folder
ng build
within app folder like normal
when flaskBackend.py
is run it will edit index.html
to add static links as url args and serve them as required
Open up http://localhost:8080/
and production app is served
ng build
angular app- restart
flaskBackend.py
to resync documents
Cheers 🍺 Mark