feature: debug .env.development.local.example for moonraker connection

Signed-off-by: meteyou <meteyou@gmail.com>
This commit is contained in:
meteyou committed 2020-11-18 21:21:43 +01:00
1 parent fe385d1558
commit 6da293b494
4 files changed
+14 -9

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
# hostname or ip from the moonraker instance
VUE_APP_HOSTNAME=printer.local
# port from the moonraker instance
VUE_APP_PORT=7125
# reconnect interval in ms
VUE_APP_RECONNECT_INTERVAL=5000
+1
View File
@@ -10,3 +10,4 @@ temp
.versions
.changelog
package-lock.json
*.local
+2 -6
View File
@@ -1,7 +1,3 @@
{
"socket": {
"hostname": "voron250.local",
"port": 80,
"metadataRequestDelay": 2000
}
}
}
+3 -3
View File
@@ -4,9 +4,9 @@ import getters from './getters'
const getDefaultState = () => {
return {
hostname: window.location.hostname,
port: window.location.port,
reconnectInterval: 5000,
hostname: process.env.VUE_APP_HOSTNAME || window.location.hostname,
port: process.env.VUE_APP_PORT || window.location.port,
reconnectInterval: process.env.VUE_APP_RECONNECT_INTERVAL || 5000,
isConnected: false,
loadings: []