Created
August 15, 2012 21:07
-
-
Save siscia/3363695 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 | |
| # save as .openshift/action_hooks/start | |
| export HTTP_CLIENT="wget --no-check-certificate -O" | |
| export PORT=$OPENSHIFT_INTERNAL_PORT | |
| export HOST=$OPENSHIFT_INTERNAL_IP:8080 | |
| export HOME=$OPENSHIFT_DATA_DIR/home | |
| export LEIN_JVM_OPTS=-Duser.home=$HOME | |
| echo $PORT | |
| cd $OPENSHIFT_REPO_DIR/diy/examplenoir | |
| #$OPENSHIFT_REPO_DIR/bin/lein deps | |
| $OPENSHIFT_REPO_DIR/bin/lein run >${OPENSHIFT_LOG_DIR}/lein.log 2>&1 & | |
| disown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment