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