-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstart.js
37 lines (36 loc) · 944 Bytes
/
start.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module.exports = {
daemon: true,
run: [
{
method: "shell.run",
params: {
venv: "env", // Edit this to customize the venv folder path
message: [
'lms server stop',
'lms server start --cors',
'{{which("lms")}} unload --all',
'{{which("lms")}} get deephermes-3-llama-3-8b-preview -y',
'{{which("lms")}} load deephermes-3-llama-3-8b-preview -y'
]
}
},
{
method: "shell.run",
params: {
venv: "env", // Edit this to customize the venv folder path
env: { }, // Edit this to customize environment variables (see documentation)
message: 'python app.py',
on: [{
"event": "/http:\/\/\\S+/",
"done": true
}]
}
},
{
method: "local.set",
params: {
url: "{{input.event[0]}}"
}
},
]
}