blob: 424a4f099f94e284980ef967d73ab7d7b4bfb1e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//
// ~~~ server process
//
// imports
import app from "./app.ts"
import loadDotenv from "@lib/dotenv.ts"
// setup app
const dotenv = loadDotenv()
const PORT = dotenv?.HC_PORT || 3000
// start app
app.listen(PORT, () => {
console.log(`=> starting homecontrol on port ${PORT}`)
})
|