@parameter1/base-cms-marko-web 2.60.0 → 2.75.1
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parameter1/base-cms-marko-web",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.75.1",
|
4
4
|
"description": "Core Marko+Express components for BaseCMS websites",
|
5
5
|
"author": "Jacob Bare <jacob@parameter1.com>",
|
6
6
|
"main": "index.js",
|
@@ -22,10 +22,10 @@
|
|
22
22
|
"@parameter1/base-cms-image": "^2.45.0",
|
23
23
|
"@parameter1/base-cms-inflector": "^2.0.0",
|
24
24
|
"@parameter1/base-cms-marko-node-require": "^2.57.0",
|
25
|
-
"@parameter1/base-cms-object-path": "^2.
|
25
|
+
"@parameter1/base-cms-object-path": "^2.75.1",
|
26
26
|
"@parameter1/base-cms-tenant-context": "^2.0.0",
|
27
|
-
"@parameter1/base-cms-utils": "^2.
|
28
|
-
"@parameter1/base-cms-web-common": "^2.
|
27
|
+
"@parameter1/base-cms-utils": "^2.75.1",
|
28
|
+
"@parameter1/base-cms-web-common": "^2.75.1",
|
29
29
|
"apollo-cache-inmemory": "^1.6.6",
|
30
30
|
"apollo-client": "^2.6.10",
|
31
31
|
"apollo-link": "^1.2.14",
|
@@ -51,5 +51,5 @@
|
|
51
51
|
"publishConfig": {
|
52
52
|
"access": "public"
|
53
53
|
},
|
54
|
-
"gitHead": "
|
54
|
+
"gitHead": "209f8a4b6402126ff44a000e1a43fbb2e3479ccd"
|
55
55
|
}
|
package/start-server.js
CHANGED
@@ -7,10 +7,9 @@ const errorHandlers = require('./express/error-handlers');
|
|
7
7
|
const express = require('./express');
|
8
8
|
const loadMore = require('./express/load-more');
|
9
9
|
|
10
|
-
if (!process.env.LIVERELOAD_PORT) process.env.LIVERELOAD_PORT = 4010;
|
11
|
-
if (!process.env.EXPOSED_HOST) process.env.EXPOSED_HOST = 'localhost';
|
12
|
-
|
13
10
|
const { env } = process;
|
11
|
+
if (!process.env.LIVERELOAD_PORT) process.env.LIVERELOAD_PORT = 4010;
|
12
|
+
if (!process.env.EXPOSED_HOST) process.env.EXPOSED_HOST = env.HOST || 'localhost';
|
14
13
|
|
15
14
|
process.on('unhandledRejection', (e) => { throw e; });
|
16
15
|
|
@@ -21,6 +20,7 @@ module.exports = async ({
|
|
21
20
|
siteConfig,
|
22
21
|
coreConfig,
|
23
22
|
helmetConfig,
|
23
|
+
host = env.HOST,
|
24
24
|
port = env.PORT || 4008,
|
25
25
|
exposedPort = env.EXPOSED_PORT || env.PORT || 4008,
|
26
26
|
exposedHost = env.EXPOSED_HOST,
|
@@ -128,7 +128,7 @@ module.exports = async ({
|
|
128
128
|
});
|
129
129
|
|
130
130
|
return new Promise((res, rej) => {
|
131
|
-
server.listen(port, function listen(err) {
|
131
|
+
server.listen(port, host, function listen(err) {
|
132
132
|
if (err) {
|
133
133
|
rej(err);
|
134
134
|
} else {
|