free-framework 4.6.2 ā 4.6.4
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/commands/new.js +2 -9
- package/package.json +1 -1
- package/runtime/server.js +2 -1
package/cli/commands/new.js
CHANGED
|
@@ -48,13 +48,6 @@ module.exports = function (name) {
|
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
// Wrap up
|
|
51
|
-
console.log("\n
|
|
52
|
-
|
|
53
|
-
execSync("npm install", { cwd: targetDir, stdio: "inherit" });
|
|
54
|
-
console.log("\nā
Enterprise Project Scaffolded Successfully!");
|
|
55
|
-
console.log(`\nTo get started, run:\n cd ${name}\n free serve\n`);
|
|
56
|
-
} catch (err) {
|
|
57
|
-
console.log("\nā ļø Scaffolding complete, but npm install failed. Please run 'npm install' manually.");
|
|
58
|
-
console.log(`\nTo get started, run:\n cd ${name}\n npm install\n free serve\n`);
|
|
59
|
-
}
|
|
51
|
+
console.log("\nā
Enterprise Project Scaffolded Successfully!");
|
|
52
|
+
console.log(`\nTo get started, run:\n cd ${name}\n npm install\n free serve\n`);
|
|
60
53
|
}
|
package/package.json
CHANGED
package/runtime/server.js
CHANGED
|
@@ -15,6 +15,7 @@ const { LRUCache } = require('lru-cache');
|
|
|
15
15
|
|
|
16
16
|
class FreeServer {
|
|
17
17
|
constructor() {
|
|
18
|
+
console.log(`[Free Engine] āļø Runtime Core v4.6.3 initializing...`);
|
|
18
19
|
this.app = new HyperExpress.Server();
|
|
19
20
|
this.viewsPath = process.env.VIEWS_PATH || nodePath.join(process.cwd(), 'views');
|
|
20
21
|
this.namedMiddlewares = {};
|
|
@@ -179,7 +180,7 @@ class FreeServer {
|
|
|
179
180
|
|
|
180
181
|
start(port = 3000) {
|
|
181
182
|
this.app.get('/health', (req, res) => res.send('OK'));
|
|
182
|
-
this.app.listen(port).then(() => {
|
|
183
|
+
this.app.listen(port, '0.0.0.0').then(() => {
|
|
183
184
|
const blueUnderline = "\x1b[34m\x1b[4m";
|
|
184
185
|
const reset = "\x1b[0m";
|
|
185
186
|
console.log(`ā” Free Engine Ignite: ${blueUnderline}http://localhost:${port}${reset}`);
|