Add configuration file
This commit is contained in:
parent
2ba0a4022d
commit
1fa74c9ccf
|
@ -1,5 +1,5 @@
|
||||||
before_script:
|
before_script:
|
||||||
- export VERSION=1.0.0
|
- export VERSION=1.0.1
|
||||||
- chmod +x packaging/build-package.sh packaging/package-upload.sh
|
- chmod +x packaging/build-package.sh packaging/package-upload.sh
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>arm-web</title>
|
<title>ARM-Web</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
<script src="/static/config.js"></script>
|
||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -23,7 +23,7 @@ let d = {
|
||||||
sensors: {}
|
sensors: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
let ws = new EventWebSocket('ws://192.168.2.85:8080/ws');
|
let ws = new EventWebSocket(window.arm_config.url);
|
||||||
|
|
||||||
ws.on('jobs', function(data) {
|
ws.on('jobs', function(data) {
|
||||||
// Create jobs components
|
// Create jobs components
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
window.arm_config = {
|
||||||
|
url: 'ws://127.0.0.1:8080/ws'
|
||||||
|
};
|
Loading…
Reference in New Issue