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": [
{
"type": "docker-build",
"label": "docker-build",
"label": "Build Node Image",
"platform": "node",
"dockerBuild": {
"dockerfile": "${workspaceFolder}/Dockerfile",
@@ -13,27 +13,16 @@
},
{
"type": "docker-run",
"label": "docker-run: release",
"dependsOn": [
"docker-build"
],
"platform": "node"
},
{
"type": "docker-run",
"label": "docker-run: debug",
"dependsOn": [
"docker-build"
],
"label": "Run Node Image",
"platform": "node",
"dockerRun": {
"env": {
"DEBUG": "*",
"NODE_ENV": "development"
}
"name": "Bot Twitch - Laytho",
"restart": "always",
"network": "host"
},
"node": {
"enableDebugging": true
}
"dependsOn": [
"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)
})
//app.listen(port, () => { console.log(`Express listening at port ${port} !`) })
app.listen(port, () => { console.log(`Express listening at port ${port} !`) })
// CHATBOT