Hi Julien,
The GEOSERVER_DATA_DIR is very poorly named. It points to the GeoServer
Configuration files (those XML files you're referencing).

You don't actually need to store the data itself (shape files, GeoTiffs,
whatever) within that structure.

Using that knowledge you can split the actual data from the configuration.


However, if I'm understanding your email correctly, you want to share most
of the configuration between systems, but not the database credentials. In
that case what I'd probably do is make the database credentials files
read-only and then use something like xcopy/robocopy/rsync to copy the
configurations between systems on a regular basis.
There may be more elegant solutions though; hopefully others will chip it.

(All that said, GeoWebCache is different again; it stores it config in
the GEOWEBCACHE_CACHE_DIR directory, which can be different on each
machine.)

Cheers,
Jonathan


On 11 July 2014 14:51, electrotype <[email protected]> wrote:

>  What is the best way to manage the configurations of Geoserver for
> different environments?
>
> In our case, the data dir (GEOSERVER_DATA_DIR) has to be identical for all
> our environments (local / dev / staging / prod) except for the
> datastore.xml files : the databases url and credentials.
>
> Ideally, I would like a way to only externalize those database
> informations (for exemple, in a xml/properties file *outside *the data
> dir) while keeping a common data directory for all environments.
>
> If no externalization of this kind is possible, how can we "switch" from
> one store information to another, depending on the environment Geoserver is
> running ?
>
> Should we have a custom deployment script that will "tweak" the data
> directory and build a custom war, depending on the target environment?
> What would you suggest for the deployment process vs. what is commited in
> the source control?
>
> Thanks in advance!
>
> Julien
>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>

-- 
This transmission is intended for the named addressee(s) only and may 
contain confidential, sensitive or personal information and should be 
handled accordingly. Unless you are the named addressee (or authorised to 
receive it for the addressee) you may not copy or use it, or disclose it to 
anyone else. If you have received this transmission in error please notify 
the sender immediately. All email traffic sent to or from us, including 
without limitation all GCSX traffic, may be subject to recording and/or 
monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to