Hi Andy,

Thanks for your reply, I already checked the documentation and I could not 
find anything that would work on Heroku because we need to place some files 
in specific directories which are not accessible on Heroku.

I see in the Procfile 
<https://github.com/drupol/cas/blob/31d18967b72c47f542d44d869747bf8d50113327/Procfile>
 
that some parameters are passed through the command line, do you know if 
there's a way to specify the configuration file there ?

Something like this:

java -jar build/libs/cas.war --config=/path/to/cas.properties

Thanks again!

On Wednesday, November 13, 2019 at 4:32:39 AM UTC+1, Andy Ng wrote:
>
> Hi,
>
> I haven't tried Heroku so wasn't the most familar with the structure, but 
> see the following:
>
>
> https://apereo.github.io/cas/6.0.x/configuration/Configuration-Properties.html#by-directory
>
> CAS by default will attempt to locate settings and properties inside a 
> given directory indicated under the setting name 
> cas.standalone.configurationDirectory and otherwise falls back to using:
>
>    1. /etc/cas/config
>    2. /opt/cas/config
>    3. /var/cas/config
>
>
>
> You can put your config in the above directory (usually we put it in 
> /etc/cas/config), and they will take effect. Note that those path are 
> relative to the *root *of the system, so 
> - config in "YOUR_APP/etc/cas/config" will *not *take effect
> - Instead, config in "/etc/cas/config" will take effect 
>
> Don't know how could heroku copy your config to /etc/cas/config, see if 
> other can helps in regard to that.
>
> See if the above info helps.
>
> Cheers!
> - Andy
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/22739e72-70e3-48bc-86f0-76d379fb804b%40apereo.org.

Reply via email to