Skip to content

Instantly share code, notes, and snippets.

@J535D165
Last active March 22, 2024 09:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save J535D165/9dd94fec840115c844059658904f7607 to your computer and use it in GitHub Desktop.
Save J535D165/9dd94fec840115c844059658904f7607 to your computer and use it in GitHub Desktop.
Start ASReview LAB development environment
{
"version": "2.0.0",
"tasks": [
{
"label": "startBackendServer",
"type": "shell",
"command": "${command:python.interpreterPath}",
"args": ["-m",
"flask",
"run",
"--debug"
],
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}/asreview/webapp",
"env": {
"ASREVIEW_LAB_ALLOW_ACCOUNT_CREATION": "true",
"ASREVIEW_LAB_SECRET_KEY": "secret",
}
}
},
{
"label": "startBackendServer_NoAuth",
"type": "shell",
"command": "${command:python.interpreterPath}",
"args": ["-m",
"flask",
"run",
"--debug"
],
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}/asreview/webapp",
"env": {
"ASREVIEW_LAB_LOGIN_DISABLED": "true",
}
}
},
{
"label": "startFrontendServer",
"type": "shell",
"command": "npm start",
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}/asreview/webapp"
}
},
{
"label": "startASReviewDevServers",
"dependsOn": [
"startBackendServer",
"startFrontendServer"
],
"problemMatcher": []
},
{
"label": "startASReviewDevServers_NoAuth",
"dependsOn": [
"startBackendServer_NoAuth",
"startFrontendServer"
],
"problemMatcher": []
},
{
"label": "renderDocumentation",
"type": "shell",
"command": "${command:python.interpreterPath}",
"args": [
"-m",
"sphinx",
"-b",
"html",
"docs/source",
"docs/build"
],
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}"
}
},
{
"label": "openDocumentation",
"type": "shell",
"command": "open docs/build/index.html",
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}"
}
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment