@webqit/webflo 0.8.64-0 → 0.8.64
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/package.json
CHANGED
|
@@ -42,7 +42,9 @@ export default async function(Ui, flags = {}) {
|
|
|
42
42
|
|
|
43
43
|
if (!setup.server.shared && setup.variables.autoload !== false) {
|
|
44
44
|
Object.keys(setup.variables.entries).forEach(key => {
|
|
45
|
-
process.env
|
|
45
|
+
if (!(key in process.env) || setup.variables.autoload === 2) {
|
|
46
|
+
process.env[key] = setup.variables.entries[key];
|
|
47
|
+
}
|
|
46
48
|
});
|
|
47
49
|
}
|
|
48
50
|
|
|
@@ -108,7 +110,6 @@ export default async function(Ui, flags = {}) {
|
|
|
108
110
|
|
|
109
111
|
// ---------------------------------------------
|
|
110
112
|
|
|
111
|
-
console.log('-----------------------------------', setup.server);
|
|
112
113
|
if (!flags['https-only']) {
|
|
113
114
|
|
|
114
115
|
Http.createServer((request, response) => {
|
|
@@ -120,7 +121,7 @@ export default async function(Ui, flags = {}) {
|
|
|
120
121
|
} else {
|
|
121
122
|
goOrForceHttps(setup, request, response);
|
|
122
123
|
}
|
|
123
|
-
}).listen(setup.server.port);
|
|
124
|
+
}).listen(process.env.PORT || setup.server.port);
|
|
124
125
|
|
|
125
126
|
const goOrForceHttps = ($setup, $request, $response) => {
|
|
126
127
|
if ($setup.server.https.force && !flags['http-only'] && /** main server */setup.server.https.port) {
|
|
@@ -185,7 +186,7 @@ export default async function(Ui, flags = {}) {
|
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
188
|
|
|
188
|
-
httpsServer.listen(setup.server.https.port);
|
|
189
|
+
httpsServer.listen(process.env.PORT2 || setup.server.https.port);
|
|
189
190
|
}
|
|
190
191
|
};
|
|
191
192
|
|
|
@@ -39,7 +39,10 @@ export async function start(Ui, flags = {}, layout = {}) {
|
|
|
39
39
|
Ui.log('');
|
|
40
40
|
Ui.log(Ui.f`${'-------------------------------'}`);
|
|
41
41
|
Ui.log('');
|
|
42
|
-
const runtimeDetails = {
|
|
42
|
+
const runtimeDetails = {
|
|
43
|
+
HTTP: process.env.PORT ? `${process.env.PORT} (Overriding ${config.port})` : config.port,
|
|
44
|
+
HTTPS: process.env.PORT2 ? `${process.env.PORT2} (Overriding ${config.https.port || 0})` : config.https.port || 0,
|
|
45
|
+
};
|
|
43
46
|
if (config.shared) {
|
|
44
47
|
runtimeDetails.MODE = 'Virtual Hosts';
|
|
45
48
|
} else {
|