зеркало из https://github.com/telerik/docs-seed.git
13 строки
372 B
JavaScript
13 строки
372 B
JavaScript
const exec = require("child_process").exec,
|
|
WatchService = require("./watch-service").WatchService,
|
|
DockerSyncService = require("./docker-sync-service");
|
|
|
|
var watcher = new WatchService().start();
|
|
new DockerSyncService(watcher).start();
|
|
|
|
process.on("SIGTERM", () => {
|
|
exec("pkill -9 -f jekyll", (error, stdout, stderr) => {
|
|
watcher.stop();
|
|
});
|
|
});
|