File tree Expand file tree Collapse file tree 4 files changed +24
-2
lines changed
mongogee/grails-app/services/grails/plugin/mongogee
test-mongogee/grails-app/conf Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
1
# mongogee
2
2
MongoDB data migration Grails Plugin.
3
3
4
-
4
+ TravisCI status on master branch: https://travis-ci.org/ikaliZpet/mongogee.svg?branch=master
5
5
6
6
## INTRODUCTION
7
7
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ class MongogeeService {
101
101
102
102
ChangeEntry existingChangeEntry = ChangeEntry . findByChangeSetId(changeEntry. changeSetId)
103
103
104
+ // todo: try-catch the invocation so the error/exp msg can be saved to changeEntryLog domain record
105
+
104
106
if (! existingChangeEntry) {
105
107
log. info " applying new changeSet: $changeEntry "
106
108
invokeChangeSetMethod(changeSetMethod, changeLogInstance)
Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ spring:
18
18
template :
19
19
check-template-location : false
20
20
21
- # Spring Actuator Endpoints are Disabled by Default
21
+ # Spring Actuator Endpoints are enabled in development env
22
+ environments :
23
+ development :
24
+ endpoints :
25
+ enabled : true
22
26
endpoints :
23
27
enabled : false
24
28
jmx :
Original file line number Diff line number Diff line change
1
+ import org.springframework.boot.actuate.health.DataSourceHealthIndicator
2
+ import org.springframework.boot.actuate.health.DiskSpaceHealthIndicatorProperties
3
+ import org.springframework.boot.actuate.health.MongoHealthIndicator
4
+
1
5
// Place your Spring DSL code here
2
6
beans = {
7
+
8
+ // ** spring boot actuator health check indicators ** //
9
+
10
+ databaseHealthCheck(DataSourceHealthIndicator , dataSource)
11
+
12
+ diskSpaceHealthIndicatorProperties(DiskSpaceHealthIndicatorProperties ) {
13
+ threshold = 250 * 1024 * 1024
14
+ }
15
+
16
+ mongoHealthIndicator(MongoHealthIndicator )
17
+
18
+
3
19
}
You can’t perform that action at this time.
0 commit comments