I am trying to use Slim on OpenShift with a free node. I can run composer update
from the SSH sessions without any problem.
The only problem is every time I want to commit files through git I have to go to the console and run composer install
again. My question is there is any easy way to workaround this? I tried a BASH script in /project/.openshift/action_hooks/post_deploy but the server is not creating the vendor folder under runtime/repo
I always do it via action hooks:
Inside my project directory I have a script called by
/project/.openshift/action_hooks/post_deploy
where post_deploy is a bash script. Here goes what I have been using:So post_deploy script will perform every time which you push your repo to openshit. It work like a charm!
Side note
Helpful links
I know that my answer is late but according to the Openshift documentation you can enable
composer install
after each build by just creating a marker file: