Sebastian,
Of the options given:
How can I change the SCM-Manager home directory?
You could change the SCM-Manager home directory in a few ways:
- Edit the scm.properties (WEB-INF/classes) file and add the path to your folder f.e. scm.home=/var/scm
- Set an environment variable SCM_HOME with the path of your directory
- Start your application server with a java property called scm.home f.e. -Dscm.home=/var/scm
Only the highlighted one is desirable. Setting environmental variables would be a less bad way, but still more a hack than a solution. I will not comment about the third, not a good idea to override such thing s form the JVM, but I am not an expert.
I would say the only good manageable solution would be to set the configuration time at deploy time. However ...
... that file does not exist in my installation:
.
|-- bin
| |-- scm-server
| `-- scm-server.bat
|-- conf
| |-- logging.xml
| `-- server-config.xml
|-- lib
| |-- commons-daemon-1.0.10.jar
| |-- javax.servlet-2.5.0.v201103041518.jar
| |-- jetty-ajp-7.6.13.v20130916.jar
| |-- jetty-continuation-7.6.13.v20130916.jar
| |-- jetty-http-7.6.13.v20130916.jar
| |-- jetty-io-7.6.13.v20130916.jar
| |-- jetty-jmx-7.6.13.v20130916.jar
| |-- jetty-security-7.6.13.v20130916.jar
| |-- jetty-server-7.6.13.v20130916.jar
| |-- jetty-servlet-7.6.13.v20130916.jar
| |-- jetty-util-7.6.13.v20130916.jar
| |-- jetty-webapp-7.6.13.v20130916.jar
| |-- jetty-xml-7.6.13.v20130916.jar
| `-- scm-server-1.34.jar
|-- libexec
| |-- jsvc-darwin
| |-- jsvc-linux-i686
| |-- jsvc-linux-x86_64
| |-- jsvc-solaris-i386
| |-- jsvc-solaris-x86_64
| |-- prunmgr.exe
| |-- prunsrv-amd64.exe
| |-- prunsrv.exe
| `-- prunsrv-ia64.exe
|-- README.txt
`-- var
|-- log
| |-- scm-server.err
| `-- scm-server.out
|-- scm-server.pid
`-- webapp
|-- docroot
| `-- index.html
`-- scm-webapp.war
8 directories, 33 files
It does not exist anywhere in ~/.scm nor /opt/scm-manager, I cannot find any directory named WEB-INF either. Anywhere.
This is as per the faq here:
https://bitbucket.org/sdorra/scm-manager/wiki/faqIf anybody knows the answer to this in Sebastian's absence, please let me know, and many thanks in advance.
G