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:
parent
d81b0bbc06
commit
1dd9bb21b6
1 changed files with 11 additions and 0 deletions
11
.vscode/tasks.json
vendored
11
.vscode/tasks.json
vendored
|
@ -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": []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue