OHSUCMP / coach

web application frontend for OHSU HTN U18 grant
2 stars 0 forks source link

Footer version not showing on POC #152

Closed aeyates closed 9 months ago

aeyates commented 9 months ago

In order for COACH to read properties out of the POM, the following properties are needed:

app.name=@project.artifactId@ app.version=@project.version@

These properties must be declared on the classpath and not in a separate file the way that POC and Prod are currently configured. Typically external property configuration is only used to override properties on the classpath with different values, but we have Prod and POC configured to ignore the classpath file completely.

Suggested change to the restart script for coach:

Replace:

export SPRING_CONFIG_LOCATION=/usr/local/coach/conf/coach/

With:

export SPRING_CONFIG_LOCATION=classpath:application.properties,file:///usr/local/coach/conf/coach/

The external properties files can stay the same and override every property if we still want it to, except we would want to remove the app.name and app.version declarations from there so the declarations in the classpath are used instead.

aeyates commented 9 months ago

This was tested on POC and worked.

mattStorer commented 9 months ago

this was deployed to production and verified working there