Guest User

mayank

a guest
Jan 21st, 2016
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. Step 1. Pre -step , set up workspace which you are going to use . Here I will take example for ruchi's instance on chocolate machine.
  2. export WORKSPACE=/root/ruchi/hudson
  3. echo $WORKSPACE
  4. Step 2. To replace dev.vdopia.com to qa.vdopia.com in all spring.properties files. ( This Change is necessary to establish DB connection with qa enviornmen)
  5. find $WORKSPACE -name "spring.properties" | xargs sed -i "s#app.jdbc.url=jdbc:mysql://dev.vdopia.com/adplatform#app.jdbc.url=jdbc:mysql://qa.vdopia.com/adplatform#g"
  6. Step 3. To change serve machine password in all spring.properties file.
  7. find $WORKSPACE -name "spring.properties" | xargs sed -i "s#app.jdbc.password=root123#app.jdbc.password=QA@1234#g"
  8. Step 4. To change desired port number in netty.config file.
  9. sed -i "s#hudsonPort=8080#hudsonPort=8068#g" $WORKSPACE/netty/src/main/resources/nettyConfig.properties
  10. Step 5. To set up log location in log4j.properties.
  11. sed -i "s#/tmp/hudson/logs/hudson.log#/tmp/hudson/logs/hudson_r.log#g" $WORKSPACE/netty/src/main/resources/log4j.properties
  12. Step 6. Change trackerconfig.properties file ( need to do this manually )
  13. Goto location ./ResponseGenerator/src/main/resources/. Open file TrackerConfig.properties
  14. Replace : Localhost by your URL in base URL & winBAse URL
  15. baseUrl=http://localhost/h/tracker/ will change something like baseUrl=http://ec2-54-90-16-143.compute-1.amazonaws.com:8058/h/tracker/
  16. winBaseUrl=http://localhost/h/win/ will change something like winBaseUrl=http://ec2-54-90-16-143.compute-1.amazonaws.com:8058/h/win/
  17. Step 7. Change cdn.properties. (need to do this manually if there are php changes )
  18. Goto location ./ResponseGenerator/src/main/resources/. Open file cdn.properties
  19. Replace: cdni.vdopia.com in cdn with <instance>.qa.vdopia.com
  20. Replace: serve.vdopia.com in referrer with <instance>serve.qa.vdopia.com
  21. *(<instance> refers to qa instance on which php tag is released)
Add Comment
Please, Sign In to add comment