Skip to content

Instantly share code, notes, and snippets.

@johnathan-sewell
Created April 29, 2014 12:51
Show Gist options
  • Save johnathan-sewell/11399377 to your computer and use it in GitHub Desktop.
Save johnathan-sewell/11399377 to your computer and use it in GitHub Desktop.
OpenShift start script for Ghost
#!/bin/bash
echo "Exporting Node Environment (production)"
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment