@rpcbase/server 0.42.0 → 0.45.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/bin.js +1 -2
- package/cli/run_docker.js +1 -1
- package/cli/start_server.js +0 -1
- package/mailer/index.js +8 -0
- package/package.json +2 -1
package/bin.js
CHANGED
|
@@ -13,12 +13,11 @@ let is_command = false
|
|
|
13
13
|
const args = yargs(hideBin(process.argv))
|
|
14
14
|
.command("start", "run server/infrastructure", () => {}, (argv) => {
|
|
15
15
|
is_command = true
|
|
16
|
-
console.log("run start server/infrastructure")
|
|
17
16
|
start_server()
|
|
18
17
|
})
|
|
19
18
|
.command("ping", "ping", () => {}, (argv) => {
|
|
20
19
|
is_command = true
|
|
21
|
-
console.log("
|
|
20
|
+
console.log("PING")
|
|
22
21
|
})
|
|
23
22
|
.option("verbose", {
|
|
24
23
|
alias: "v",
|
package/cli/run_docker.js
CHANGED
|
@@ -4,7 +4,6 @@ const path = require("path")
|
|
|
4
4
|
|
|
5
5
|
const is_production = "yes" === process.env.INFRASTRUCTURE_IS_PRODUCTION
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
const run_docker = async(infrastructure_dir, proj_prefix) => {
|
|
9
8
|
// env
|
|
10
9
|
const env_path = path.relative(infrastructure_dir, path.join(process.cwd(), "./.env"))
|
|
@@ -20,6 +19,7 @@ const run_docker = async(infrastructure_dir, proj_prefix) => {
|
|
|
20
19
|
const cmd = `docker-compose --env-file ${env_path} -p ${proj_prefix} ${compose_files.join(" ")} up ${opts.join(" ")}`
|
|
21
20
|
|
|
22
21
|
console.log(cmd)
|
|
22
|
+
|
|
23
23
|
try {
|
|
24
24
|
execSync(cmd, {stdio: "inherit", cwd: infrastructure_dir})
|
|
25
25
|
} catch (err) {
|
package/cli/start_server.js
CHANGED
package/mailer/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpcbase/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"license": "SSPL-1.0",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"express-session": "1.17.2",
|
|
20
20
|
"glob": "7.2.0",
|
|
21
21
|
"mongoose": "6.2.7",
|
|
22
|
+
"postmark": "3.0.1",
|
|
22
23
|
"redis": "4.0.4",
|
|
23
24
|
"validator": "13.7.0",
|
|
24
25
|
"yargs": "17.4.0"
|