Steps to Bring dev02 up as Qa site

Date Task Description Change Date Change Owner Change Status
21/08/2013 a. Config changes to app to run in rails staging environment.
b. Make Qacollab01 to work with dev02 for live events and streaming.
c. Deploy current tag (1.3.8.0) and test the app. Make changes to deploy scripts as needed
d. provide public ip to murali
e.solr issue in catalog page
f. Reset data and check wepay account
21/13/2013 udaya a. completed @ 1:00 pm 08/22/2013
b. completed @ 8:00 pm on 08/22/2013
c. completed @ 3:30 pm 08/22/2013
d. completed @ 5:30 pm on 08/21/2013
e. completed @ 11am 08/23/2013
f. completed at 3pm 08/23/2013
21/08/2013 g. Add DNS entry to point qa01.learnexa.com to the public ip provided. 08/21/2013 murali completed @ 5.30pm on 08/21/2013
qa01.learnexa.com points to 72.18.249.59

Instructions followed to get QA02 up

1) As this is a clone of dev01, installing software and setting up bundler was not needed.

2) Made the following config changes in /deploy/crossbow/shared directory.

3) Created a database cb_stage as root and granted privileges of this database to the rails user(expdev01 in this case). Changed the /deploy/crossbow/database.yml to point to a new database 'cb_stage'.

     #run manually as root 
     /opt/glusterfs/3.2.4/sbin/glusterfs --log-level=INFO --volfile-id=/streams --volfileserver=qacollab01.exphosted.com
     vi /etc/fstab 
     #Add the following lines and save
     /deploy/crossbow/current/public/streams
     --volfile-id=/streams
     --volfile-server = qacollab01.exphosted.com 

4) Remove the old data from /deploy/crossbow/shared/system/uploaded_datas and /deploy/crossbow/shared/system .

5) Change the deploy scripts.

 run "ln -nfs #{shared_path}/config/crossdomain.yml #{release_path}/public/crossdomain.yml" 

6) Deploy the lastest tag.

7) Populate initial data.

8) Run the following tasks in /deploy/crossbow/current.

 
       bundle exec rake db:seed RAILS_ENV=staging
       bundle exec backfill:create_real_time_conversion_size_setting RAILS_ENV=staging
       #set the voice extension data in db/voice_extensions.csv and then run 
       bundle exec rake voice_extensions:populate RAILS_ENV=staging
       bundle exec rake populate:default_subscription_settings RAILS_ENV=staging

       bundle exec backfill:populate_site_subscription_plans_default_values RAILS_ENV=staging
       bundle exec rake backfill:populate_site_subscription_plans_default_values RAILS_ENV=staging
       bundle exec rake backfill:update_prepopulated_subscription_plans_values RAILS_ENV=staging
       bundle exec rake backfill:update_prepopulated_subscription_values RAILS_ENV=staging 

9) Reset the super admin password. Setup wepay account for super site as metioned here -
https://wiki.exphosted.com/doku.php/1.1.6.0-jamaicapredeployment