-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
configure evolutions base directory with evolutions.basePath #3967
configure evolutions base directory with evolutions.basePath #3967
Conversation
@@ -79,10 +80,13 @@ case class DownScript(evolution: Evolution) extends Script { | |||
*/ | |||
object Evolutions { | |||
|
|||
val conf = ConfigFactory.load(); | |||
val evolutionsBasePath = conf.getString("evolutions.basePath", "evolutions") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't be reparsing the entire configuration statically just to get this configuration - the base path should be taken from an injection configuration object.
I think the best thing to do here is to remove these methods from the |
Actually, As for configuration item names etc, it should be configurable globally and per database, and be something like this:
I also think we should stop reading from the filesystem, just read straight from the classpath. |
Thanks James, Ill look into it. On Wed, Feb 25, 2015 at 12:25 PM, James Roper notifications@github.com
|
Im closing this issue, Im not going to finish it. We're using symlinks instead. I did look into doing as you suggested James, but the rabbit hole was too deep. |
This has finally been implement in #11917 |
Solution to this issue. #3966