@rpcbase/server 0.152.0 → 0.154.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli/run_docker.js
CHANGED
|
@@ -25,10 +25,10 @@ const run_docker = async(infrastructure_dir, proj_prefix) => {
|
|
|
25
25
|
compose_files.push("-f", "dev.yml")
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
const opts = ["--build", "--remove-orphans"]
|
|
28
|
+
const opts = ["--build", "--quiet-pull", "--remove-orphans", "--force-recreate"]
|
|
29
29
|
if (!is_production) opts.push("--abort-on-container-exit")
|
|
30
30
|
|
|
31
|
-
const cmd = "docker
|
|
31
|
+
const cmd = "docker compose"
|
|
32
32
|
const cmd_args = ["--env-file", env_path, "-p", proj_prefix, ...compose_files, "up", ...opts]
|
|
33
33
|
|
|
34
34
|
console.log(cmd_args.join(" "))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpcbase/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.154.0",
|
|
4
4
|
"license": "SSPL-1.0",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 0"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@rpcbase/agent": "0.
|
|
13
|
+
"@rpcbase/agent": "0.26.0",
|
|
14
14
|
"@rpcbase/std": "0.5.0",
|
|
15
15
|
"body-parser": "1.20.1",
|
|
16
16
|
"bull": "4.10.2",
|
|
@@ -7,8 +7,6 @@ const queue = require("./index")
|
|
|
7
7
|
const dispatch_queue = require("./dispatch_queue")
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
console.log("AFTER REQUIRE register_model_emitter")
|
|
11
|
-
|
|
12
10
|
const log = debug("rb:queue:listener")
|
|
13
11
|
|
|
14
12
|
// Listens for mongodb change events,
|
|
@@ -41,7 +39,7 @@ const get_dispatch_change_handler = (model_name) => (change) => {
|
|
|
41
39
|
|
|
42
40
|
|
|
43
41
|
const register_model_emitter = (model_name) => {
|
|
44
|
-
|
|
42
|
+
log("registering emitter for", model_name)
|
|
45
43
|
const model = mongoose.model(model_name)
|
|
46
44
|
// TODO: implement delete operation fullDocument retrieve,
|
|
47
45
|
// when this is released https://jira.mongodb.org/browse/SERVER-36941
|
|
@@ -70,9 +68,8 @@ const register_queue_listener = () => {
|
|
|
70
68
|
mongoose.plugin(mongoose_delete_plugin)
|
|
71
69
|
|
|
72
70
|
mongoose.connection.on("open", () => {
|
|
73
|
-
|
|
71
|
+
log("queue_listener mongoose connection opened")
|
|
74
72
|
const models = mongoose.modelNames()
|
|
75
|
-
console.log("WILL register_model_emitter")
|
|
76
73
|
models.forEach(register_model_emitter)
|
|
77
74
|
})
|
|
78
75
|
}
|