Skip to content

Instantly share code, notes, and snippets.

@jeremythuff
Created July 13, 2022 20:17
Show Gist options
  • Save jeremythuff/e39b6626424442581fe63f98f04abe96 to your computer and use it in GitHub Desktop.
Save jeremythuff/e39b6626424442581fe63f98f04abe96 to your computer and use it in GitHub Desktop.
Faculty Leave Style 12 Factor Configuration
- We need a templated version of the appConfig.js which uses handlebar style references to environment variables ```{{ENV_VAR}}```
- we need an angularjs entrypoint.sh based on the angular url(entrypoint.sh)[https://github.com/TAMULib/FacultyLeave/blob/main/client/docker-entrypoint.sh] in faculty leave
- It will reference environment variables to compile a templated version of the appConfig.js
- It will write the compiled config to a static asset location
- We will need to modify the index.html to reference the compiled appConfig.js before the bundle.js
- We may need to modify the current appConfig in the app and appConfigCore in weaver-ui-core to reference the configuration object on the js scope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment