Skip to content

Commit

Permalink
Invoke Composer install only when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
JVerstry committed Jul 24, 2015
1 parent a1200c7 commit 99326ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .openshift/action_hooks/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ else
php $OPENSHIFT_DATA_DIR/composer.phar self-update
fi

( unset GIT_DIR ; cd $OPENSHIFT_REPO_DIR ; php $OPENSHIFT_DATA_DIR/composer.phar install )
if [ -f "$OPENSHIFT_REPO_DIR/composer.json" ]; then
( unset GIT_DIR ; cd $OPENSHIFT_REPO_DIR ; php $OPENSHIFT_DATA_DIR/composer.phar install )
fi

0 comments on commit 99326ff

Please sign in to comment.