mirror of
https://github.com/nfonteyne/octane-website.git
synced 2026-09-03 23:24:48 +02:00
first commit
This commit is contained in:
commit
244cdbedd7
44 changed files with 3386 additions and 0 deletions
19
src/server.js
Normal file
19
src/server.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const config = require('./config');
|
||||
const createApp = require('./app');
|
||||
const { initOidc } = require('./auth/oidc');
|
||||
const { runMigrations } = require('./db/migrate');
|
||||
|
||||
async function main() {
|
||||
await runMigrations();
|
||||
await initOidc();
|
||||
|
||||
const app = createApp();
|
||||
app.listen(config.port, () => {
|
||||
console.log(`Octane website listening on port ${config.port}`);
|
||||
});
|
||||
}
|
||||
|
||||
main().catch((err) => {
|
||||
console.error('Failed to start server:', err);
|
||||
process.exit(1);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue