Skip to content

Commit 3a8c6b9

Browse files
committed
Update todo
1 parent 82f0c5b commit 3a8c6b9

File tree

2 files changed

+9
-28
lines changed

2 files changed

+9
-28
lines changed

Diff for: app/index.js

+9-22
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,16 @@ const server = require("./server");
88
const flush = require("documentation/tools/flush-cache");
99
const configureLocalBlogs = require("./configure-local-blogs");
1010

11-
console.log(clfdate(), `Starting server pid=${process.pid} environment=${config.environment}`);
11+
console.log(clfdate(), `Starting server`);
1212

13-
try {
14-
const v8 = require('v8');
15-
const heapStats = v8.getHeapStatistics();
16-
console.log(clfdate(), 'Max heap size (MB):', heapStats.heap_size_limit / (1024 * 1024));
17-
} catch (e) {
18-
console.log(clfdate(), 'Error getting heap size:', e);
19-
}
20-
21-
22-
setup(async err => {
13+
setup(async (err) => {
2314
if (err) throw err;
2415

25-
// Flush the cache of documentation
16+
// Flush the cache of the public site and documentation
2617
flush();
2718

2819
// This is the master process
2920
if (config.master) {
30-
3121
// Launch scheduler for background tasks, like backups, emails
3222
scheduler();
3323

@@ -41,20 +31,17 @@ setup(async err => {
4131
}
4232
}
4333

44-
email.SERVER_START(null, {container: config.container});
34+
// Send an email notification if the server starts or restarts
35+
email.SERVER_START(null, { container: config.container });
36+
37+
console.log(clfdate(), "Finished setting up server");
4538

4639
// Open the server to handle requests
4740
server.listen(config.port, function () {
48-
console.log(
49-
clfdate(),
50-
`Server listening pid=${process.pid} port=${config.port}`
51-
);
41+
console.log(clfdate(), `Server listening`);
5242

53-
console.log(clfdate(), "Finished setting up server");
54-
5543
if (config.environment === "development") {
5644
configureLocalBlogs();
57-
}
58-
45+
}
5946
});
6047
});

Diff for: todo.txt

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
April 2nd: contact mac server host and request annual billing + reduce root disk size to 50 GB.
2-
3-
April 1st: Create more Google Drive service accounts under new gmail users before April 15th deadline (see clients/google-drive/readme)
4-
5-
---
6-
71
Convert callbacks to async/await
82
- literally anywhere in the codebase – use util.callbackify to add backwards compatibility
93

0 commit comments

Comments
 (0)