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

workaround for cd not working with python popen

parent b87efa95
......@@ -72,9 +72,11 @@ def start(subject=None):
_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')
pwd = os.getcwd()
_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():
_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