Files
f.bosin.ch/.vscode/tasks.json
2023-08-25 21:24:11 +02:00

40 lines
1.1 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build & Deploy",
"type": "shell",
"command": "npm run build && rsync -arzP --progress --delete-after --force --update --inplace --times ./build ./package.json ./package-lock.json ./start.sh root@f.bosin.ch:/home/sveltekit"
},
{
"label": "Delete Dependencies",
"type": "shell",
"command": "ssh f.bosin.ch rm -rf /home/sveltekit/node_modules"
},
{
"label": "Install Dependencies",
"type": "shell",
"command": "ssh f.bosin.ch sudo -u sveltekit bash -c 'cd /home/sveltekit; npm ci --omit dev'"
},
{
"label": "Restart Server",
"type": "shell",
"command": "ssh f.bosin.ch systemctl restart bosin-files"
},
{
"label": "Full Deploy",
"dependsOn": [
"Build & Deploy"
],
"type": "shell",
"command": "ssh f.bosin.ch systemctl restart bosin-files",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}