@rpcbase/server 0.362.0 → 0.363.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/boot/shared.js +0 -2
- package/database.js +2 -1
- package/package.json +1 -1
- package/queue/index.js +2 -1
- package/src/sessions/session_store_middleware.js +2 -1
- package/store/index.js +2 -1
- package/boot/setup_env.js +0 -19
package/boot/shared.js
CHANGED
package/database.js
CHANGED
package/package.json
CHANGED
package/queue/index.js
CHANGED
|
@@ -6,7 +6,8 @@ const validator = require("validator")
|
|
|
6
6
|
const {createClient} = require("redis")
|
|
7
7
|
const RedisStore = require("connect-redis").default
|
|
8
8
|
|
|
9
|
-
const {is_docker} = require("@rpcbase/std")
|
|
9
|
+
// const {is_docker} = require("@rpcbase/std")
|
|
10
|
+
const is_docker = () => true
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
const {SESSION_STORE_PORT, APP_DOMAIN} = process.env
|
package/store/index.js
CHANGED
package/boot/setup_env.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* @flow */
|
|
2
|
-
const path = require("path")
|
|
3
|
-
const dotenv = require("dotenv")
|
|
4
|
-
|
|
5
|
-
const wd = process.cwd()
|
|
6
|
-
|
|
7
|
-
const shared_env_path = path.join(wd, "../../.env")
|
|
8
|
-
const env_path = path.join(wd, "./.env")
|
|
9
|
-
|
|
10
|
-
const res_shared = dotenv.config({path: shared_env_path})
|
|
11
|
-
const res = dotenv.config({path: env_path})
|
|
12
|
-
|
|
13
|
-
if (res.error) {
|
|
14
|
-
throw res.error
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if (res.error) {
|
|
18
|
-
throw res.error
|
|
19
|
-
}
|