-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
63 lines (63 loc) · 4.1 KB
/
package.json
File metadata and controls
63 lines (63 loc) · 4.1 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"dependencies": {
"axios": "^0.21.1",
"bcryptjs": "^2.4.3",
"lodash": "^4.17.21",
"mongoose": "^5.13.0",
"shelljs": "^0.8.3",
"uniqid": "^5.3.0",
"yaml": "^1.10.2"
},
"devDependencies": {
"@types/bcrypt": "^5.0.0",
"@types/bcryptjs": "^2.4.2",
"@types/lodash": "^4.14.170",
"appbox-types": "^0.0.7",
"forever-monitor": "^3.0.1",
"nodemon": "^2.0.9",
"ts-node": "^9.1.1",
"typescript": "^4.3.5"
},
"name": "appbox-supervisor",
"version": "0.0.1",
"description": "Appbox core: supervisor. Responsible for keeping various important parts of appbox (server, engine, backends) up and running. Can interact with the filesystem.",
"main": "supervisor.ts",
"author": "Vic van Cooten",
"license": "MIT",
"scripts": {
"prepareDb": "mongod --replSet \"rs\" --dbpath /AppBox/System/Database",
"updateClient": "git -C /AppBox/System/Client pull && yarn --cwd ../Client install && yarn --cwd ../Client build",
"updateServer": "git -C /AppBox/System/Server reset --hard && git -C /AppBox/System/Server pull && yarn --cwd ../Server install && yarn --cwd ../Server build && yarn restartServer",
"updateEngine": "git -C /AppBox/System/Engine reset --hard && git -C /AppBox/System/Engine pull && yarn --cwd ../Engine install && yarn --cwd ../Engine build && yarn restartEngine",
"updateAppServer": "git -C /AppBox/System/App-Server pull && yarn --cwd ../App-Server install && yarn --cwd ../App-Server build",
"updateSupervisor": "git -C /AppBox/System/Supervisor reset --hard && git -C /AppBox/System/Supervisor pull && yarn --cwd ../Supervisor install && yarn build && yarn restartSupervisor",
"update": "yarn updateClient && yarn updateServer && yarn updateEngine && yarn updateAppServer && yarn updateSupervisor",
"buildClient": "yarn --cwd ../Client build",
"buildServer": "yarn --cwd ../Server build",
"buildEngine": "yarn --cwd ../Engine build",
"buildSupervisor": "yarn build",
"runSupervisor": "pm2 start dist/supervisor.js --no-daemon --watch --time --name=\"AppBox-Supervisor\" --exp-backoff-restart-delay=100",
"stopSupervisor": "pm2 delete AppBox-Supervisor",
"restartSupervisor": "pm2 restart AppBox-Supervisor",
"runAppServer": "DBURL=${DBURL:-localhost:27017} URL=${URL:-http://localhost:3000} pm2 start /AppBox/System/App-Server/dist/server.js --no-daemon --watch --time --name=\"AppBox-App-Server\" --exp-backoff-restart-delay=100",
"stopAppServer": "pm2 delete AppBox-App-Server",
"restartAppServer": "pm2 restart AppBox-App-Server",
"runServer": "DBURL=${DBURL:-localhost:27017} URL=${URL:-http://localhost:3000} URL={PUBLICURL:-localhost:8600} pm2 start /AppBox/System/Server/dist/server.js --no-daemon --watch --time --name=\"AppBox-Server\" --exp-backoff-restart-delay=100",
"stopServer": "pm2 delete AppBox-Server",
"restartServer": "pm2 restart AppBox-Server",
"runEngine": "DBURL=${DBURL:-localhost:27017} URL=${URL:-http://localhost:3000} pm2 start /AppBox/System/Engine/dist/engine.js --no-daemon --watch --time --name=\"AppBox-Engine\" --exp-backoff-restart-delay=100",
"stopEngine": "pm2 delete AppBox-Engine",
"restartEngine": "pm2 restart AppBox-Engine",
"build": "tsc",
"watch-ts": "tsc -w",
"runAll": "DBURL=${DBURL:-localhost:27017} URL=${URL:-http://localhost:3000} pm2 start ./pm2.json",
"watch-node": "nodemon dist/supervisor.js",
"start": "DBURL=${DBURL:-localhost:27017} URL=${URL:-http://localhost:3000} yarn runAll & yarn logs",
"stop": "yarn stopSupervisor & yarn stopServer && yarn stopAppServer && yarn stopEngine",
"restart": "DBURL=${DBURL:-localhost:27017} URL=${URL:-http://localhost:3000} yarn restartSupervisor & DBURL=${DBURL:-localhost:27017} URL=${URL:-http://localhost:3000} yarn restartServer & DBURL=${DBURL:-localhost:27017} URL=${URL:-http://localhost:3000} yarn restartAppServer & DBURL=${DBURL:-localhost:27017} URL=${URL:-http://localhost:3000} yarn restartEngine && yarn logs",
"status": "pm2 list",
"logs": "pm2 logs --time --merge-logs",
"test": "mocha -r ts-node/register src/**/*.spec.ts",
"develop": "nodemon src/supervisor.ts"
}
}