Common @openshift RHC commands


/ Published in: Bash
Save to your folder(s)

I use these commands all the time while dealing with @openshift. I figured it would make sense to spell them out.


Copy this code and paste it in your HTML
  1. #Switch or setup an account for RHC
  2. rhc setup
  3.  
  4. #Back up your application + database
  5. rhc snapshot save magento
  6.  
  7. #Create a php-5.3 + mysql 5.1 application based on a Github codebase (you can call your app whatever you want)
  8. rhc app create $appname php-5.3 mysql-5.1 --from-code=https://github.com/openshift/magento-example
  9.  
  10. #Create a php-5.3 application (you can call your application whatever you want)
  11. rhc app create -a $appname -t php-5.3
  12. #Add MySQL support to your application
  13. rhc app cartridge add -a $appname -c mysql-5.1

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.