Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Baur
cloudify3
Commits
0f841dc6
Commit
0f841dc6
authored
Jun 17, 2015
by
Daniel Baur
Browse files
workaround for cd not working with python popen
parent
b87efa95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ghost-openstack/scripts/ghost/ghost.py
ghost-openstack/scripts/ghost/ghost.py
+5
-3
No files found.
ghost-openstack/scripts/ghost/ghost.py
View file @
0f841dc6
...
...
@@ -72,9 +72,11 @@ def start(subject=None):
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 start &)'
,
error_message
=
'Failed running npm start'
)
pwd
=
os
.
getcwd
()
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'
)
os
.
chdir
(
pwd
)
def
stop
():
_run
(
'sudo killall node'
,
error_message
=
'Failed killing nodejs'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment