-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow sysadmin to override grails.config.locations using command line argument or env property #22
Comments
Addendum:Looks like the application.properties is a grails specific meta data file. At least the configuration location should be parameterizeable for the above files, and preferably in line with standard deployment of .war or .ear files. Looks like for this older version of grails the ServletContext is not accessible from config.groovy in order to say access a property file in WEB-INF/ or WEB-INF/classes. |
I'm not opposed to adding more locations to
|
Okay, so what I experimented with, was to set an environment variable that then drove the location for the properties file. |
I just realized that the commit above accidentally caused this ticket to close. However, we really want to be able to set these config locations from the command-line or system env property. |
#22 allow sysadmin to add custom config location using command line or environment variable
Outline:
It might not always be possible to setup a directory .grails in the Tomcat home in order to configure open-boxes due to operational restrictions. Given the fact that the data source specification and others reside in this properties file, without it the application (don't think) can connect to the underlying db.
Solutions:
Hard coding a default solutions is not a good idea (in case the code can not find the properties).
Instead, and given the nature of a previous defect regarding properties files, this property fils should be amalgamated with the one in the application.properties file.
This way, deployment would become more streamlined.
The text was updated successfully, but these errors were encountered: