Je répare ma connerie... + Fix build & run Docker

This commit is contained in:
Zachary Guénot
2023-05-11 01:39:20 +02:00
parent e5526cc908
commit fb8857f01a
2 changed files with 10 additions and 21 deletions

29
.vscode/tasks.json vendored
View File

@@ -3,7 +3,7 @@
"tasks": [ "tasks": [
{ {
"type": "docker-build", "type": "docker-build",
"label": "docker-build", "label": "Build Node Image",
"platform": "node", "platform": "node",
"dockerBuild": { "dockerBuild": {
"dockerfile": "${workspaceFolder}/Dockerfile", "dockerfile": "${workspaceFolder}/Dockerfile",
@@ -13,27 +13,16 @@
}, },
{ {
"type": "docker-run", "type": "docker-run",
"label": "docker-run: release", "label": "Run Node Image",
"dependsOn": [ "platform": "node",
"docker-build"
],
"platform": "node"
},
{
"type": "docker-run",
"label": "docker-run: debug",
"dependsOn": [
"docker-build"
],
"dockerRun": { "dockerRun": {
"env": { "name": "Bot Twitch - Laytho",
"DEBUG": "*", "restart": "always",
"NODE_ENV": "development" "network": "host"
}
}, },
"node": { "dependsOn": [
"enableDebugging": true "docker-build"
} ]
} }
] ]
} }

2
app.js
View File

@@ -80,7 +80,7 @@ app.get('/twitch/panel/:file', async (req, res) => {
else return res.sendFile(__dirname + '/public/panel/' + file) else return res.sendFile(__dirname + '/public/panel/' + file)
}) })
//app.listen(port, () => { console.log(`Express listening at port ${port} !`) }) app.listen(port, () => { console.log(`Express listening at port ${port} !`) })
// CHATBOT // CHATBOT