65 | | Currently this is a manual step, but in the future the application will contain a getting started wizard which will do this for you (see #185). |
66 | | |
67 | | GSCF supports externalized configuration which it expects to be in a ''.grails-config'' folder on the homedir of the tomcat user. In this case the homedir of the ''tomcat6'' user is ''/usr/share/tomcat6/.grails-config'' so it will try to load the configuration file ''/usr/share/tomcat6/.grails-config/nmcdsptest-gscf.properties''. |
68 | | |
69 | | First, create the folder to hold the configuration file(s), touch an empty configuration file and change the ownership: |
70 | | {{{ |
71 | | root@nmcdsp:~# cd /usr/share/tomcat6 |
72 | | root@nmcdsp:/usr/share/tomcat6# mkdir .grails-config;touch .grails-config/nmcdsptest-gscf.properties;chown -R tomcat6.tomcat6 .grails-config;chmod -R gou+rx .grails-config |
73 | | }}} |
74 | | |
75 | | Then edit the configuration file itself: |
76 | | {{{ |
77 | | root@nmcdsp:/usr/share/tomcat6# nano .grails-config/nmcdsptest-gscf.properties |
78 | | }}} |
79 | | |
80 | | And paste the following configuration: |
81 | | {{{ |
82 | | # Test build default configuration |
83 | | # |
84 | | # Revision Information: |
85 | | # $Author$ |
86 | | # $Date$ |
87 | | # $Rev$ |
88 | | |
89 | | # server URL |
90 | | grails.serverURL=http://test.mysite.com |
91 | | |
92 | | # DATABASE |
93 | | dataSource.driverClassName=org.postgresql.Driver |
94 | | dataSource.dialect=org.hibernate.dialect.PostgreSQLDialect |
95 | | dataSource.url=jdbc:postgresql://localhost:5432/mytestdb |
96 | | dataSource.dbCreate=update |
97 | | dataSource.username=mydbuser |
98 | | dataSource.password=mydbpassword |
99 | | #dataSource.logSql=false |
100 | | |
101 | | # SpringSecurity E-Mail Settings |
102 | | grails.plugins.springsecurity.ui.forgotPassword.emailFrom=gscf.default.installation@gmail.com |
103 | | |
104 | | # module configuration |
105 | | #modules.sam.url=http://test.sam.nmcdsp.org |
106 | | #modules.metabolomics.url=http://test.metabolomics.nmcdsp.org |
107 | | #modules.metagenomics.url=http://test.metagenomics.nmcdsp.org |
108 | | |
109 | | # Number of seconds to keep rest results from modules in cache |
110 | | modules.cacheDuration = 600 |
111 | | |
112 | | # default application users |
113 | | authentication.users.admin.username=admin |
114 | | authentication.users.admin.password=adminpw |
115 | | authentication.users.admin.email=admin@mysite.com |
116 | | authentication.users.admin.administrator=true |
117 | | authentication.users.user.username=user |
118 | | authentication.users.user.password=userpw |
119 | | authentication.users.user.email=user@mysite.com |
120 | | authentication.users.user.administrator=false |
121 | | }}} |
122 | | |
123 | | Press CTRL-X to save the file (and enter Y). |
| 65 | As of GSCF 0.8.3 a setup wizard is included which will create a configuration file for you (/path/to/homedir/.gscf/environment.properties) |