update functionality complete
This commit is contained in:
parent
edfc23454d
commit
aacaca3d4e
|
@ -65,6 +65,20 @@ services:
|
|||
volumes:
|
||||
- redis_data:/data
|
||||
|
||||
watchtower-service:
|
||||
image: containrrr/watchtower
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command: --debug --http-api-update budibase/apps budibase/worker
|
||||
environment:
|
||||
- WATCHTOWER_HTTP_API=true
|
||||
- WATCHTOWER_HTTP_API_TOKEN=budibase
|
||||
- WATCHTOWER_CLEANUP=true
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=false"
|
||||
ports:
|
||||
- 6161:8080
|
||||
|
||||
volumes:
|
||||
couchdb3_data:
|
||||
driver: local
|
||||
|
|
|
@ -126,7 +126,7 @@ services:
|
|||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=false"
|
||||
ports:
|
||||
- 6666:8080
|
||||
- 6161:8080
|
||||
|
||||
|
||||
volumes:
|
||||
|
|
|
@ -133,4 +133,3 @@ static_resources:
|
|||
socket_address:
|
||||
address: {{ address }}
|
||||
port_value: 4002
|
||||
|
||||
|
|
|
@ -140,5 +140,5 @@ static_resources:
|
|||
address:
|
||||
socket_address:
|
||||
address: watchtower-service
|
||||
port_value: 6666
|
||||
port_value: 6161
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
href: "/builder/portal/settings/theming",
|
||||
},
|
||||
{
|
||||
title: "Update",
|
||||
title: "Updates",
|
||||
href: "/builder/portal/settings/update",
|
||||
},
|
||||
])
|
||||
|
|
|
@ -70,7 +70,6 @@
|
|||
|
||||
loading = false
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
{#if $auth.isAdmin}
|
||||
|
|
|
@ -27,17 +27,16 @@
|
|||
async function updateBudibase() {
|
||||
try {
|
||||
notifications.info("Updating budibase..")
|
||||
// const response = await fetch("http://localhost:6666/v1/update", {
|
||||
// headers: {
|
||||
// Authorization: "Bearer budibase"
|
||||
// }
|
||||
// })
|
||||
const response = await fetch("/v1/update", {
|
||||
headers: {
|
||||
Authorization: "Bearer budibase",
|
||||
},
|
||||
})
|
||||
notifications.success("Your budibase installation is up to date.")
|
||||
} catch (err) {
|
||||
notifications.error(`Error installing budibase update ${err}`)
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
{#if $auth.isAdmin}
|
||||
|
@ -45,7 +44,8 @@
|
|||
<Layout gap="XS" noPadding>
|
||||
<Heading size="M">Update</Heading>
|
||||
<Body>
|
||||
Keep your budibase installation up to date to take advantage of the latest features, security updates and much more.
|
||||
Keep your budibase installation up to date to take advantage of the
|
||||
latest features, security updates and much more.
|
||||
</Body>
|
||||
</Layout>
|
||||
<Divider size="S" />
|
||||
|
|
|
@ -28,14 +28,14 @@ app.use(
|
|||
})
|
||||
)
|
||||
|
||||
let logger = pino({
|
||||
app.use(
|
||||
pino({
|
||||
prettyPrint: {
|
||||
levelFirst: true,
|
||||
},
|
||||
level: env.LOG_LEVEL || "error",
|
||||
})
|
||||
|
||||
app.use(logger)
|
||||
})
|
||||
)
|
||||
|
||||
if (!env.isTest()) {
|
||||
const bullApp = bullboard.init()
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
exports.fetchDebugLogs = async ctx => {
|
||||
// read them from file
|
||||
// serve them
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
exports.updateSystem = async ctx => {}
|
|
@ -1,9 +0,0 @@
|
|||
const Router = require("@koa/router")
|
||||
const controller = require("../../controllers/admin/debug")
|
||||
const adminOnly = require("../../../middleware/adminOnly")
|
||||
|
||||
const router = Router()
|
||||
|
||||
router.get("/api/admin/debug/logs", adminOnly, controller.fetchDebugLogs)
|
||||
|
||||
module.exports = router
|
|
@ -5,7 +5,6 @@ const templateRoutes = require("./admin/templates")
|
|||
const emailRoutes = require("./admin/email")
|
||||
const authRoutes = require("./admin/auth")
|
||||
const roleRoutes = require("./admin/roles")
|
||||
const updatesRoutes = require("./admin/updates")
|
||||
const appRoutes = require("./app")
|
||||
|
||||
exports.routes = [
|
||||
|
@ -17,5 +16,4 @@ exports.routes = [
|
|||
templateRoutes,
|
||||
emailRoutes,
|
||||
roleRoutes,
|
||||
updatesRoutes,
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue