diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index b512c09..0000000 --- a/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -node_modules \ No newline at end of file diff --git a/package.json b/package.json index e309500..aeb3eca 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "A telegram bot for automating cleaning duties", "scripts": { - "dev": "ts-node src/app.ts", + "dev": "NODE_ENV=development ts-node src/app.ts", "postinstall": "npx prisma generate", "build": "tsc && npx prisma generate", "start": "node build/app.js", diff --git a/src/app.ts b/src/app.ts index 261a4b9..9ef4e0d 100644 --- a/src/app.ts +++ b/src/app.ts @@ -73,7 +73,7 @@ const launch = async (bot: Telegraf) => { }) ); - app.post("/", async (req, res) => res.status(200).send("OK")); + app.get("/", async (req, res) => res.status(200).send("OK")); return app.listen(port, () => console.log("app listening on port", port)); };