I managed to deploy application to Openshift, set port/host/db. But my app isn't working still, and it looks like my Gruntfile isn't run properly.
I have created hook inside openshift/action_hooks
called pre_start_nodejs
, with following content:
#!/bin/bash
export NODE_ENV=production
# If there is a grunt file, run $ grunt prod
if [ -f "${OPENSHIFT_REPO_DIR}"/Gruntfile.js ]; then
(cd "${OPENSHIFT_REPO_DIR}"; node_modules/grunt-cli/bin/grunt prod)
fi
but when I push my code to openshift, it says this
remote: Git Post-Receive Result: failure
remote: Activation status: failure
remote: Activation failed for the following gears:
remote: 539077bd5973caf0320000d0 (Error activating gear: CLIENT_ERROR: Failed to execute: 'control start' for /var/lib/openshift/539077bd5973caf0320000d0/nodejs)
remote: Deployment completed with status: failure
remote: postreceive failed
I also receive this warning regardin Sass:
remote: Warning:
remote: You need to have Ruby and Sass installed and in your PATH for this task to work.
Tried to install Sass with just gem install sass
, but looks like it didn't help.
Any ideas?