PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
lib
/
commands
'use strict'; const Command = require('../command'); class RestartCommand extends Command { async run() { const instance = this.system.getInstance(); const isRunning = await instance.isRunning(); if (!isRunning) { this.ui.log('Ghost instance is not running! Starting...', 'yellow'); return this.ui.run(() => instance.start(), 'Starting Ghost'); } instance.loadRunningEnvironment(true); await this.ui.run(() => instance.restart(), 'Restarting Ghost'); } } RestartCommand.description = 'Restart the Ghost instance'; module.exports = RestartCommand;
[-] stop.js
[edit]
[-] migrate.js
[edit]
[-] restart.js
[edit]
[+]
..
[-] run.js
[edit]
[-] import.js
[edit]
[-] install.js
[edit]
[-] export.js
[edit]
[-] uninstall.js
[edit]
[+]
doctor
[-] check-update.js
[edit]
[-] start.js
[edit]
[-] config.js
[edit]
[-] update.js
[edit]
[-] ls.js
[edit]
[-] setup.js
[edit]
[-] buster.js
[edit]
[-] log.js
[edit]
[-] version.js
[edit]