whitespace
This commit is contained in:
vanhempi
00e9d96f8b
commit
3f437c6ebb
@ -135,7 +135,7 @@ later, if you need them.
|
|||||||
|
|
||||||
`server.js`:
|
`server.js`:
|
||||||
|
|
||||||
```bash
|
```js
|
||||||
require("greenlock-express")
|
require("greenlock-express")
|
||||||
.init(getConfig)
|
.init(getConfig)
|
||||||
.serve(worker);
|
.serve(worker);
|
||||||
@ -150,7 +150,7 @@ function getConfig() {
|
|||||||
|
|
||||||
function worker(server) {
|
function worker(server) {
|
||||||
// Works with any Node app (Express, etc)
|
// Works with any Node app (Express, etc)
|
||||||
var app = require('my-express-app.js');
|
var app = require("my-express-app.js");
|
||||||
server.serveApp(app);
|
server.serveApp(app);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@ -75,7 +75,7 @@ Master._spawnWorkers = function(opts, greenlock) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cluster.on('exit', function () {
|
cluster.on("exit", function() {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
process.exit(3);
|
process.exit(3);
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|||||||
Ladataan…
x
Viittaa uudesa ongelmassa
Block a user