mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 12:40:09 +01:00
b96129961e
* open the server port to public on container post create * install gh on container start * remove port command until needed * look for port 3001 to be available and make public * install netcat * run background nc task before server start * add sleep 5 due to error clashing with server start * remove netcat, use gh cli
95 lines
2.5 KiB
JSON
95 lines
2.5 KiB
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"type": "shell",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/collector",
|
|
"statusbar": {
|
|
"color": "#ffea00",
|
|
"detail": "Runs the collector",
|
|
"label": "Collector: $(play) run",
|
|
"running": {
|
|
"color": "#ffea00",
|
|
"label": "Collector: $(gear~spin) running"
|
|
}
|
|
}
|
|
},
|
|
"command": "cd ${workspaceFolder}/collector/ && yarn dev",
|
|
"runOptions": {
|
|
"instanceLimit": 1,
|
|
"reevaluateOnRerun": true
|
|
},
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
},
|
|
"label": "Collector: run"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/server",
|
|
"statusbar": {
|
|
"color": "#ffea00",
|
|
"detail": "Runs the server",
|
|
"label": "Server: $(play) run",
|
|
"running": {
|
|
"color": "#ffea00",
|
|
"label": "Server: $(gear~spin) running"
|
|
}
|
|
}
|
|
},
|
|
"command": "if [ \"${CODESPACES}\" = \"true\" ]; then while ! gh codespace ports -c $CODESPACE_NAME | grep 3001; do sleep 1; done; gh codespace ports visibility 3001:public -c $CODESPACE_NAME; fi & cd ${workspaceFolder}/server/ && yarn dev",
|
|
"runOptions": {
|
|
"instanceLimit": 1,
|
|
"reevaluateOnRerun": true
|
|
},
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
},
|
|
"label": "Server: run"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/frontend",
|
|
"statusbar": {
|
|
"color": "#ffea00",
|
|
"detail": "Runs the frontend",
|
|
"label": "Frontend: $(play) run",
|
|
"running": {
|
|
"color": "#ffea00",
|
|
"label": "Frontend: $(gear~spin) running"
|
|
}
|
|
}
|
|
},
|
|
"command": "cd ${workspaceFolder}/frontend/ && yarn dev",
|
|
"runOptions": {
|
|
"instanceLimit": 1,
|
|
"reevaluateOnRerun": true
|
|
},
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
},
|
|
"label": "Frontend: run"
|
|
}
|
|
]
|
|
}
|