File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ deployment:
13
13
- cp js/bootstrap.min.js /tmp/ui/js
14
14
- cp js/jquery.min.js /tmp/ui/js
15
15
- cp index.html /tmp/ui/index.html
16
+ - cp config.js /tmp/ui/config.js
16
17
- cd /tmp; zip -r9 $CIRCLE_ARTIFACTS/centralconfig-ui.zip ui
17
18
- go get github.com/tcnksm/ghr
18
19
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME v1.0.$CIRCLE_BUILD_NUM $CIRCLE_ARTIFACTS/ || true
Original file line number Diff line number Diff line change
1
+ var appconfig = {
2
+ "serviceBaseUrl" : "" /* Leave blank for localhost/local service port */
3
+ }
Original file line number Diff line number Diff line change 39
39
40
40
</ div >
41
41
42
+ <!-- Application configuration
43
+ ================================================== -->
44
+ < script type ="text/javascript " src ="config.js "> </ script >
45
+
42
46
<!-- Bootstrap core JavaScript
43
47
================================================== -->
44
48
<!-- Placed at the end of the document so the pages load faster -->
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class CentralConfigAPIUtils {
14
14
getAllConfigItems ( ) {
15
15
16
16
// Format the url
17
- let url = `/config/getall` ;
17
+ let url = `${ appconfig . serviceBaseUrl } /config/getall` ;
18
18
19
19
console . time ( "Fetched config data" ) ;
20
20
nprogress . start ( ) ;
@@ -38,7 +38,7 @@ class CentralConfigAPIUtils {
38
38
removeConfigItem ( configItem ) {
39
39
40
40
// Format the url
41
- let url = `/config/remove` ;
41
+ let url = `${ appconfig . serviceBaseUrl } /config/remove` ;
42
42
43
43
console . log ( "Removing config: %O" , configItem )
44
44
console . time ( "Called remove" ) ;
@@ -64,7 +64,7 @@ class CentralConfigAPIUtils {
64
64
setConfigItem ( configItem ) {
65
65
66
66
// Format the url
67
- let url = `/config/set` ;
67
+ let url = `${ appconfig . serviceBaseUrl } /config/set` ;
68
68
69
69
console . log ( "Setting config: %O" , configItem )
70
70
console . time ( "Set config data" ) ;
You can’t perform that action at this time.
0 commit comments