mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
Features:
- Rust support 🦀 (Thanks to @pepoviola)
- Add a default rewrite rule to PHP apps (to index.php)
- Able to control upgrades in a straightforward way
Fixes:
- Improved upgrade scripts
- Simplified prechecks before deployment
- Fixed path deployments
- Fixed already defined apps redirections
- Better error handling - still needs a lot of improvement here!
15 lines
508 B
JavaScript
15 lines
508 B
JavaScript
const { docker } = require('../../../libs/docker')
|
|
|
|
module.exports = async function (fastify) {
|
|
fastify.get('/', async (request, reply) => {
|
|
try {
|
|
const { name } = request.query
|
|
const service = await docker.engine.getService(`${name}_${name}`)
|
|
const logs = (await service.logs({ stdout: true, stderr: true, timestamps: true })).toString().split('\n').map(l => l.slice(8)).filter((a) => a)
|
|
return { logs }
|
|
} catch (error) {
|
|
throw { error, type: 'server' }
|
|
}
|
|
})
|
|
}
|