Ned Ned - 4 months ago 21
Node.js Question

Deploying SailsJS to Openshift

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

, with following content:

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)

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?


You surely use grunt-contrib-sass - right? That grunt-module need ruby and sass installed on the server.



instead - that should help.