Initial commit: Add HomeBase application with Docker support, deployment scripts, and health check endpoint
Some checks failed
Deploy to BeePC / deploy (push) Has been cancelled
Some checks failed
Deploy to BeePC / deploy (push) Has been cancelled
This commit is contained in:
25
server.js
Normal file
25
server.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 3001;
|
||||
const DOMAIN = process.env.DOMAIN || 'homebase.sketchferret.com';
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.json({
|
||||
message: 'HomeBase is running!',
|
||||
domain: DOMAIN,
|
||||
timestamp: new Date().toISOString(),
|
||||
version: '1.0.0'
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/health', (req, res) => {
|
||||
res.json({ status: 'healthy' });
|
||||
});
|
||||
|
||||
app.listen(PORT, '0.0.0.0', () => {
|
||||
console.log(`Server running on port ${PORT}`);
|
||||
console.log(`Domain: ${DOMAIN}`);
|
||||
console.log(`Visit: http://${DOMAIN}`);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user