Answer the question
In order to leave comments, you need to log in
How to compile Angular on Heroku side?
I have a Flask project for the backend and Angular for the frontend
. The whole thing is running on Heroku. On Heroku, this works like a regular python project that already has a compiled (using ng build --prod) js bundle in its static resources. JS is built accordingly on the local machine before deploying to heroku.
How can I make it build on the Heroku side after deployment. I mean how to run ng build --prod on heroku side for python project.
If you come across links to articles, please share!
Answer the question
In order to leave comments, you need to log in
You need to add a script with ng build --prod parameters to package.json - postinstall. An example with the second angular: https://medium.com/@ryanchenkie_40935/angular-cli-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question