mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-17 04:52:51 +01:00
* `setup` command fixes and improvements - Enable using the `./nodebb setup` command for auto-setup with a JSON argument - Change CLI so package-install and dependency install are separate steps - Fix #6142 * Prevent compiling templates multiple times - Multiple requests for same template get pooled - Hopefully fixes the "templateFunction is not a function" error which happens if site is restarted during high-traffic times * More helpful upgrade template
18 lines
450 B
Plaintext
18 lines
450 B
Plaintext
'use strict';
|
|
|
|
var db = require('../../database');
|
|
|
|
var async = require('async');
|
|
var winston = require('winston');
|
|
|
|
module.exports = {
|
|
// you should use spaces
|
|
// the underscores are there so you can double click to select the whole thing
|
|
name: 'User_friendly_upgrade_script_name',
|
|
// remember, month is zero-indexed (so January is 0, December is 11)
|
|
timestamp: Date.UTC(2017, 0, 1),
|
|
method: function (callback) {
|
|
// Do stuff here...
|
|
},
|
|
};
|