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