Fixed server
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
|
server/data/*
|
||||||
|
server/public/*
|
||||||
|
|
||||||
sensors/bin
|
sensors/bin
|
||||||
sensors/include
|
sensors/include
|
||||||
|
|||||||
@@ -191,7 +191,6 @@ app.use((err, req, res, next) => {
|
|||||||
|
|
||||||
// ── Start ─────────────────────────────────────────────────────────────────────
|
// ── Start ─────────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
(async () => {
|
|
||||||
const c = cfg();
|
const c = cfg();
|
||||||
|
|
||||||
setTimeout(getForecast, 1)
|
setTimeout(getForecast, 1)
|
||||||
@@ -201,4 +200,3 @@ app.use((err, req, res, next) => {
|
|||||||
app.listen(c.PORT, () => {
|
app.listen(c.PORT, () => {
|
||||||
console.log(`🌦 Weather API — http://localhost:${c.PORT}`)
|
console.log(`🌦 Weather API — http://localhost:${c.PORT}`)
|
||||||
});
|
});
|
||||||
})()
|
|
||||||
|
|||||||
Reference in New Issue
Block a user