The company I work for currently has several (roxy) applications that all shared a common content-db.
This makes sharing the content database configuration difficult among all the applications difficult.
I'd like to propose the following method to handle sharing portions of configuration among multiple applications:
Create a new configuration option (living in build.properties) that would instruct roxy to read another properties file, and apply those properties after default and build, but before the environment properties file.
This option would point to a properties file outside the deploy directory. This directory would be a submodule within your project, thus allowing you to share whatever portions of the configuration you desire.
My initial investigation suggests that this check for the option would exist within server_config.rb in the
2679 def ServerConfig.properties(prop_file_location = @@path)
2680 default_properties_file = ServerConfig.expand_path("#{prop_file_location}/default.properties")
2681 properties_file = ServerConfig.expand_path("#{prop_file_location}/build.properties")
2682
2683 raise ExitException.new("You must run ml init to configure your application.") unless File.exist?(properties_file)
2684
2685 properties = ServerConfig.load_properties(default_properties_file, "ml.")
2686 properties.merge!(ServerConfig.load_properties(properties_file, "ml."))
2687 # Read properties, look for a config that would instruct us to read another optional properties file
2688 #
2689 # If that exists, then find file, and merge its properties
2690