You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Contents: Majority of the properties related to the running of the application (including database connection information) and message customisation.
33
+
- Example:
34
+
```Ini
35
+
# ===============================
36
+
# = DATA SOURCE
37
+
# ===============================
38
+
39
+
### Database Connection ###
40
+
spring.datasource.url = jdbc:mysql://<Host Here>:3306/<Database Name Here>
rdp.site.welcome=<p>The ${rdp.site.fullname} Registry collects information on model organism researchers \
88
+
and the specific genes they study. The Registry is the mechanism by which researchers can find potential \
89
+
matches of model organism researchers to human rare disease or cancer researchers.</p>
90
+
91
+
rdp.site.email.registration-welcome=Thank you for registering with ${rdp.site.fullname}. (${rdp.site.host}${rdp.site.context}).
92
+
93
+
rdp.site.email.registration-ending=You will then be able to log in using the password you provided, and \
94
+
start filling in your profile.\r\n\r\n If you have questions or difficulties with registration please \
95
+
feel free to contact us: ${rdp.site.contact-email}
96
+
```
97
+
* faq.properties
98
+
- Location: Specified using `-Dspring.config.location=file:<location>`
99
+
- Defaults: Empty
100
+
- Contents: All of the question and answer style items that will display in the frequently asked questions page. Each entry requires two parts: `rdp.faq.questions.<q_key>` and `rdp.faq.answers.<q_key>` which hold the question and the corresponding answer, respectively.
- Contents: Create this file if you would like to customise spring specific messages such as incorrect username/password.
106
+
107
+
### Running Application
108
+
To start the application the simplest command is: java -jar rdp-x.x.x.jar
109
+
110
+
That being said, there a few options you will likely want to specify
111
+
112
+
*`-Dserver.port=<port>`: Port for the webserver to listen on.
113
+
*`-Dspring.config.location=file:<faq location>`: Location to find the FAQ question & answers
114
+
*`-Djava.security.egd=file:/dev/./urandom`: Specify this if you receive logs such as: _"Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [235,853] milliseconds."_ The secure random calls may be blocking as there is not enough entropy to feed them in /dev/random.
115
+
116
+
The webserver will start initialising, create any missing required tables in the connected database and shortly be serving content at the provided port.
117
+
118
+
#### Notes
119
+
* The organisms table is prepopulated on creation however all but human are turned off. Set the active column to 1 in the database to turn on an organism (Example (this will activate mouse): `update taxon set active=1 where taxon_id=10090`)
120
+
* If a required table is not found in the database upon application startup it will create it, it will NOT delete existing data.
121
+
122
+
## Building From Source
123
+
124
+
* Clone the repo or download the source distribution.
0 commit comments