Add configuration file

This commit is contained in:
Tyler 2017-12-03 21:06:34 -05:00
parent 2ba0a4022d
commit 1fa74c9ccf
4 changed files with 7 additions and 3 deletions

View File

@ -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:

View File

@ -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>

View File

@ -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

3
static/config.js Normal file
View File

@ -0,0 +1,3 @@
window.arm_config = {
url: 'ws://127.0.0.1:8080/ws'
};