Commit 80e6cce2 authored by Daniel Baur's avatar Daniel Baur

added again the rel betweent ghost and nodejs, fixed ghost script

parent da663448
......@@ -168,22 +168,16 @@ node_templates:
# Setting the nodejs connection
################################
#- type: node_contained_in_nodejs
# target: nodejs
- type: node_contained_in_nodejs
target: nodejs
################################
# Setting the haproxy connection
# Setting the nginx connection
################################
- type: app_connected_to_nginx
target: nginx
########################################
# Note: only ubuntu haproxy installation
# is supported.
########################################
nginx:
type: nginx.nodes.Proxy
relationships:
......
#!/bin/bash -e
ctx logger info "Starting ghost"
ctx logger debug "${COMMAND}"
sudo apt-get install unzip
curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip
unzip -uo ghost.zip -d ghost
npm install --production
npm start
cd ghost
ctx logger info "Starting ghost"
......@@ -33,7 +33,7 @@ node_types:
derived_from: cloudify.nodes.ApplicationServer
interfaces:
cloudify.interfaces.lifecycle:
create: scripts/nodejs/install-ubuntu.sh
start: scripts/nodejs/start-ubuntu.sh
###########################################################
......@@ -84,8 +84,8 @@ relationships:
# use it to install depenencies with npm
###########################################################
#node_contained_in_nodejs:
# derived_from: cloudify.relationships.contained_in
node_contained_in_nodejs:
derived_from: cloudify.relationships.contained_in
# target_interfaces:
# cloudify.interfaces.relationship_lifecycle:
# preconfigure: scripts/nodejs/set-nodejs-root.sh
\ No newline at end of file
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