Guest User

APJP OpenShift procedure

a guest
Feb 9th, 2012
337
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. INSTALL CYGWIN
  2. - ALL\NET\OPENSSH
  3. - ALL\DEVEL\RUBY
  4. - ALL\DEVEL\MAKE
  5. - ALL\DEVEL\GCC
  6. - ALL\DEVEL\GIT
  7.  
  8. OPEN CYGWIN
  9.  
  10. DOWNLOAD http://rubyforge.org/projects/rubygems
  11. UNZIP IN <CYGWIN>/home/<USER>/
  12.  
  13. EXECUTE ruby <RUBYGEMS>/setup.rb install
  14.  
  15. EXECUTE gem install rhc
  16.  
  17. EXECUTE rhc-create-domain -n <YOUR-DOMAIN> -l <YOUR-USERNAME> -p <YOUR-PASSWORD>
  18.  
  19. EXECUTE rhc-create-app -a <YOUR-APPLICATION> -t jbossas-7.0 -p <YOUR-PASSWORD>
  20.  
  21. COPY ROOT.war IN <YOUR-APPLICATION>/deployments
  22. UNZIP <YOUR-APPLICATION>/deployments/ROOT.war
  23. CONFIGURE <YOUR-APPLICATION>/deployments/WEB-INF/APJP.properties
  24. ZIP <YOUR-APPLICATION>/deployments/ROOT.war
  25.  
  26. EXECUTE cd <YOUR-APPLICATION>
  27.  
  28. EXECUTE git rm -r src pom.xml
  29.  
  30. EXECUTE git commit -m "delete"
  31.  
  32. EXECUTE git push
  33.  
  34. EXECUTE git init
  35.  
  36. EXECUTE git add .
  37.  
  38. EXECUTE git commit -m "deploy"
  39.  
  40. EXECUTE git push
  41.  
  42. IN BROWSER
  43. - http://<YOUR-APPLICATION>-<YOUR-DOMAIN>.rhcloud.com
  44. - https://<YOUR-APPLICATION>-<YOUR-DOMAIN>.rhcloud.com
  45.  
  46. IN APJP.properties
  47. - http://<YOUR-APPLICATION>-<YOUR-DOMAIN>.rhcloud.com/HTTP
  48. - http://<YOUR-APPLICATION>-<YOUR-DOMAIN>.rhcloud.com/HTTPS
  49.  
  50. OR
  51.  
  52. - https://<YOUR-APPLICATION>-<YOUR-DOMAIN>.rhcloud.com/HTTP
  53. - https://<YOUR-APPLICATION>-<YOUR-DOMAIN>.rhcloud.com/HTTPS
RAW Paste Data