nfp_sites/discord_embed/dev.mjs
Jonatan Nilsson 2b1e2d695a
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
base: Fix upload support for null
base: Tweak serve to be slightly more extendable
discord_embed: Added new site, discord embed
2022-10-17 07:52:55 +00:00

24 lines
No EOL
432 B
JavaScript

import fs from 'fs'
import { ServiceCore } from 'service-core'
import * as index from './index.mjs'
const port = 4120
var core = new ServiceCore('nfp_moe', import.meta.url, port, '')
let config = {
frontend: {
url: 'http://localhost:' + port
}
}
try {
config = JSON.parse(fs.readFileSync('./config.json'))
} catch {}
config.port = port
core.setConfig(config)
core.init(index).then(function() {
return core.run()
})