Skip to content

Instantly share code, notes, and snippets.

@lupomontero
Last active October 11, 2015 03:38
Show Gist options
  • Save lupomontero/3797403 to your computer and use it in GitHub Desktop.
Save lupomontero/3797403 to your computer and use it in GitHub Desktop.
Starting the app (.openshift/action_hooks/start)
#!/bin/bash
# The logic to start up your application should be put in this
# script. The application will work only if it binds to
# $OPENSHIFT_INTERNAL_IP:8080
HOME=$OPENSHIFT_DATA_DIR nohup $OPENSHIFT_DATA_DIR/nave/nave.sh use 0.10.33 \
$OPENSHIFT_REPO_DIR'app.js' $OPENSHIFT_INTERNAL_PORT $OPENSHIFT_INTERNAL_IP \
> $OPENSHIFT_LOG_DIR/app.log 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment