0

I'm traying to configure an AngularJs/NodeJs app in a Heroku Pipeline. What I understand of a every DevOps Pipeline, the goal is avoid recompiling the app in every stage. For the Node API the Heroku suggestion is pretty clear: config vars. But for the AngularJs client -obvisly, config vars are for server side scripts- I haven't found any suggestion or good practice. Also, I've searched into the deep internet and what I found is that there is not a common issue. I've found this well explained article and now I'm working on it, but what is hard to understand for me is: is not a common issue to avoid recompilation of Angular clients in stage-to production pipelines? Is there not a official proposal of AngularJs dev team to this situation?
My thougts are:
1- I'm misunderstanding something....or..
2- Promote to production Angular apps without recompiling is not a common issue.

Please, I'm new on Angular and I need some advice.
Thanks!

4
  • Can you show your effort? Commented Oct 22, 2018 at 3:24
  • Take a look at stackoverflow.com/questions/41348751/… Commented Oct 22, 2018 at 7:03
  • Thanks @yoni, I actually read your answer in that thread and it's pretty clear. But even in that thread there is no clear solution and your answser has only 4 likes. Also, there is not an offcial documentation about this issue and googling it didn't help. This make me think that avoiding re-compiling Angular app in production is not a common good practice as I thinked (I wonder how many Angular apps are running into Heroku Pipelines right now....). Thanks again. Commented Oct 22, 2018 at 14:50
  • Recompiling Angular apps (or anything else for that matter) when promoting between pipeline phases basically defeats the whole point of pipelines, part of which is to promote an unmodified tested binary from development through staging to production. The way I personally deal with this issue in my pipeline apps is to have my Ionic/Angular client query the server for any pipeline-specific env vars (which can be set differently in each pipeline phase). Commented Oct 23, 2018 at 6:50

1 Answer 1

1

refer the angular version you are using

angular 4

angular 6

angular 2

Follow these methods as shows

there is no short summary or spinet to define process

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks @jackson but there videos only shows how to deploy Angular apps on Heroku without pipelines orchestration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.