=== 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.
* In general, To setup a new enviroment (QA,dev or production) from the scratch, please install the required software and setup capistrano as documented in this page - https://wiki.exphosted.com/doku.php/qastageandproductiondeployment
2) Made the following config changes in /deploy/crossbow/shared directory.
* Create a file staging.god and copy it's file contents form the current tag's svn. In this case the content comes from \\ https://repos.exphosted.com/svnrepos/crossbow/trunk/config/staging.god
* Change sunspot.yml file staging stanza's solr's port to tomcat's port.
* Change the staging stanza settings on bigbluebutton.yml to point to qacollab01.exphosted.com
* Change the recorder.yml and streamer.yml settings to point the host as "qacollab01.exphosted.com" and shared diectroy to /deploy/crossbow/shared/streams.
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'.
* Mount streams directory from qacollab01.exphosted.com
#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. \\
* Create /home/expdev01/crossbow/config/deploy/staging.rb file and copy contents from /home/expdev01/crossbow/config/deploy/development.rb and change the ip.
* Change the environment, stages and site url to check in file /home/expdev01/crossbow/config/deploy.rb
* Create crossdomain.xml file in /deploy/crossbow/shared/config. Get the content from https://repos.exphosted.com/svnrepos/crossbow/tags/1.3.7.0-LONDON/public/crossdomain.xml and edit it accordingly. Add the following line to /home/expdev01/crossbow/config/deploy.rb .
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