nemesiscodex/openfonacide

View on GitHub
.openshift/action_hooks/build

Summary

Maintainability
Test Coverage
#!/bin/bash
# This is a simple build script and will be executed on your CI system if 
# available.  Otherwise it will execute while your application is stopped
# before the deploy step.  This script gets executed directly, so it
# could be python, php, ruby, etc.

# Activate VirtualEnv in order to use the correct libraries
source $OPENSHIFT_HOMEDIR/python/virtenv/bin/activate

echo "--> ACTION HOOK: build <--"
pip install -r "$OPENSHIFT_REPO_DIR"/requirements.txt

if [ ! -d $OPENSHIFT_DATA_DIR/media ]; then
mkdir $OPENSHIFT_DATA_DIR/media
fi

ln -sf $OPENSHIFT_DATA_DIR/media $OPENSHIFT_REPO_DIR/wsgi/static/media