Commit 1588d303 authored by Daniel Baur's avatar Daniel Baur

Do not longer cd in ghost script

parent ee0998f1
...@@ -72,12 +72,12 @@ def start(subject=None): ...@@ -72,12 +72,12 @@ def start(subject=None):
writeConfig(subject) writeConfig(subject)
_run('cd /opt/ghost/ && sudo /usr/bin/npm install',error_message='Failed running npm install') _run('(cd /opt/ghost/; sudo /usr/bin/npm install)',error_message='Failed running npm install')
_run('cd /opt/ghost/ && sudo /usr/bin/npm start &',error_message='Failed running npm start') _run('(cd /opt/ghost/; sudo /usr/bin/npm start &)',error_message='Failed running npm start')
def stop(): def stop():
_run('sudo killall nodejs',error_message='Failed killing nodejs') _run('sudo killall node',error_message='Failed killing nodejs')
def _run(command, error_message): def _run(command, error_message):
runner = utils.LocalCommandRunner(logger=ctx.logger) runner = utils.LocalCommandRunner(logger=ctx.logger)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment