update server port and set new dubdiff method
This commit is contained in:
parent
ab1229e8da
commit
30609b17da
@ -37,7 +37,7 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
express: {
|
express: {
|
||||||
options: {
|
options: {
|
||||||
port: process.env.PORT || 9000
|
port: process.env.PORT || 80
|
||||||
},
|
},
|
||||||
dev: {
|
dev: {
|
||||||
options: {
|
options: {
|
||||||
@ -208,7 +208,7 @@ module.exports = function (grunt) {
|
|||||||
options: {
|
options: {
|
||||||
nodeArgs: ['--debug-brk'],
|
nodeArgs: ['--debug-brk'],
|
||||||
env: {
|
env: {
|
||||||
PORT: process.env.PORT || 9000
|
PORT: process.env.PORT || 80
|
||||||
},
|
},
|
||||||
callback: function (nodemon) {
|
callback: function (nodemon) {
|
||||||
nodemon.on('log', function (event) {
|
nodemon.on('log', function (event) {
|
||||||
@ -431,7 +431,7 @@ module.exports = function (grunt) {
|
|||||||
dist: [
|
dist: [
|
||||||
'jade',
|
'jade',
|
||||||
'sass',
|
'sass',
|
||||||
'imagemin',
|
//'imagemin',
|
||||||
'svgmin'
|
'svgmin'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -14,8 +14,9 @@ temp.track();
|
|||||||
// Perform a comparison between a and b
|
// Perform a comparison between a and b
|
||||||
// the callback should have parameters (err, result)
|
// the callback should have parameters (err, result)
|
||||||
|
|
||||||
|
module.exports = newversion
|
||||||
|
|
||||||
module.exports = function(a, b, asMarkdown, callback) {
|
function newversion (a, b, asMarkdown, callback) {
|
||||||
|
|
||||||
|
|
||||||
//a few strings have to be escaped: "[-", "-]", "{+", and "+}"
|
//a few strings have to be escaped: "[-", "-]", "{+", and "+}"
|
||||||
@ -50,7 +51,7 @@ module.exports = function(a, b, asMarkdown, callback) {
|
|||||||
return callback(null, resData);
|
return callback(null, resData);
|
||||||
}
|
}
|
||||||
|
|
||||||
var oldversion = function(a, b, asMarkdown, callback) {
|
function oldversion (a, b, asMarkdown, callback) {
|
||||||
|
|
||||||
//!!! this nested file-open is not a good pattern
|
//!!! this nested file-open is not a good pattern
|
||||||
// better would be to use promises and write the two files asynchronously
|
// better would be to use promises and write the two files asynchronously
|
||||||
|
Loading…
Reference in New Issue
Block a user