express server läuft jetzt mit https
This commit is contained in:
Lukas Nowy
2018-12-16 19:08:08 +01:00
parent 5589b0df3f
commit fd947bd852
475 changed files with 91128 additions and 0 deletions

26
express-server/node_modules/pyconf/test.js generated vendored Normal file
View File

@ -0,0 +1,26 @@
'use strict';
//var pyconf = require('pyconf');
var pyconf = require('./');
pyconf.readFile('doesnt-exist.conf', function (err, obj) {
if (!err || obj) {
console.error("didn't get an error (or also got an object) when testing on non-existant file");
process.exit(1);
}
});
pyconf.readFile('example.conf', function (err, obj) {
if (err) {
console.error(err.stack);
return;
}
pyconf.writeFile('example.conf.new', obj, function (err) {
if (err) {
console.error(err.stack);
return;
}
console.log("Run this command to check that the outputs are the same:");
console.log(" diff example.conf example.conf.new");
});
});