Add a 'restartloader' tasks to restart the python backend. (#19)

This is useful for testing/developing the python code.

I also added this as an optional last
subtask on allinone.
This commit is contained in:
Kevin Hester 2023-02-20 10:34:55 -08:00 committed by GitHub
parent d81b0bbc06
commit 1dd9bb21b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
.vscode/tasks.json vendored
View file

@ -71,6 +71,15 @@
"command": "rsync -azp --delete --chmod=D0755,F0755 --rsh='ssh -p ${config:deckport} ${config:deckkey}' --exclude='.git/' --exclude='.github/' --exclude='.vscode/' --exclude='node_modules/' --exclude='src/' --exclude='*.log' --exclude='.gitignore' . deck@${config:deckip}:${config:deckdir}/homebrew/plugins/${workspaceFolderBasename}", "command": "rsync -azp --delete --chmod=D0755,F0755 --rsh='ssh -p ${config:deckport} ${config:deckkey}' --exclude='.git/' --exclude='.github/' --exclude='.vscode/' --exclude='node_modules/' --exclude='src/' --exclude='*.log' --exclude='.gitignore' . deck@${config:deckip}:${config:deckdir}/homebrew/plugins/${workspaceFolderBasename}",
"problemMatcher": [] "problemMatcher": []
}, },
{
"label": "restartloader",
"detail": "Restart the plugin loader (to load updated python code)",
"type": "shell",
"group": "none",
"dependsOn": [],
"command": "ssh deck@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo '${config:deckpass}' | sudo -S systemctl restart plugin_loader'",
"problemMatcher": []
},
{ {
"label": "chmodfolders", "label": "chmodfolders",
"detail": "chmods folders to prevent perms issues", "detail": "chmods folders to prevent perms issues",
@ -98,6 +107,8 @@
"dependsOn": [ "dependsOn": [
"buildall", "buildall",
"deployall" "deployall"
// Uncomment this line if you'd like your python code reloaded after deployment (this will restart Steam)
// ,"restartloader"
], ],
"problemMatcher": [] "problemMatcher": []
} }