Deploying Custom Cartridges on Openshift Origin -
i have created new custom cartridge, in have packaged rpm using tito , installed using yum. cartridge being copied spec file /usr/libexec/openshift/cartridges directory, however, when log origin home site , try create application cartridge not show up. went digging in ruby scripts , found there script named cartridge_cache.rb seems caching cartridges finds within /usr/libexec/openshift/cartridges directory. have tried origin reload cache include new cartridge removing cache files within /var/www/openshift/broker/cache directory restarting broker, have had no success. there somewhere need hardcode cart name global variable or ? basically, know how custom cart show on webpage creating new application.
update: ran slide deck had 1 slide on how install cartridge. however, still have had no success, here have tried since previous post:
- moved cartridge directory
/usr/libexec/openshift/cartridges
/usr/libexec/openshift/catridges/v2
ran command
oo-admin-cartridge -a install -s /usr/libexec/openshift/cartridges/v2/myfirstcart
which output stated installed cartridge.
cleared cache
bundle exec rake tmp:clear
restarted openshift broker service
also, make sure cache cleared out went rails console , ran rails.cache.clear. , still no custom cartridge on openshift webpage.
it works me after cleaning cache
cd /var/www/openshift/broker bundle exec rake tmp:clear
and restarting broker service
service openshift-broker restart
Comments
Post a Comment