Heroku Pipeline with Angular 2 Environments

前端 未结 3 1599
栀梦
栀梦 2020-12-17 07:30

I\'ve built my Angular 2 project using the Angular 2 CLI and was able to deploy the application to Heroku using this tutorial.

Now, I\'d like to create a pipeline f

3条回答
  •  旧巷少年郎
    2020-12-17 07:51

    If you are running your application in a Heroku node environment you can try to take a look at this solution to avoid having your environments variables and security keys hardcoded in the repositories: https://medium.com/@natchiketa/angular-cli-and-os-environment-variables-4cfa3b849659

    I strongly suggest also to take a look at its first response that introduce a dynamic solution to create the environment file at building time: https://medium.com/@h_martos/amazing-job-sara-you-save-me-a-lot-of-time-thank-you-8703b628e3eb

    Maybe they are not the best solutions, but a trick to avoid setting up projects differently each time.

提交回复
热议问题