Commit 0f841dc6 authored by Daniel Baur's avatar Daniel Baur

workaround for cd not working with python popen

parent b87efa95
...@@ -72,9 +72,11 @@ def start(subject=None): ...@@ -72,9 +72,11 @@ def start(subject=None):
writeConfig(subject) writeConfig(subject)
_run('(cd /opt/ghost/ && sudo /usr/bin/npm install)',error_message='Failed running npm install') pwd = os.getcwd()
_run('(cd /opt/ghost/ && sudo /usr/bin/npm start &)',error_message='Failed running npm start') os.chdir('/opt/ghost')
_run('sudo /usr/bin/npm install',error_message='Failed running npm install')
_run('sudo /usr/bin/npm start &',error_message='Failed running npm start')
def stop(): def stop():
_run('sudo killall node',error_message='Failed killing nodejs') _run('sudo killall node',error_message='Failed killing nodejs')
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