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
1588d303
Commit
1588d303
authored
Jun 17, 2015
by
Daniel Baur
Browse files
Do not longer cd in ghost script
parent
ee0998f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ghost-openstack/scripts/ghost/ghost.py
ghost-openstack/scripts/ghost/ghost.py
+3
-3
No files found.
ghost-openstack/scripts/ghost/ghost.py
View file @
1588d303
...
...
@@ -72,12 +72,12 @@ 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'
)
_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'
)
def
stop
():
_run
(
'sudo killall node
js
'
,
error_message
=
'Failed killing nodejs'
)
_run
(
'sudo killall node'
,
error_message
=
'Failed killing nodejs'
)
def
_run
(
command
,
error_message
):
runner
=
utils
.
LocalCommandRunner
(
logger
=
ctx
.
logger
)
...
...
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