====== 1.4.0.0-OSLO Predeployment Configuration ======
**Reference -** https://wiki.exphosted.com/doku.php/protect_direct_download_of_contents#deployment_related_changes
====== PRODUCTION (COMPLETED AT 22/10/2013 22:36:51 PDT) ======
===== Take backup =====
- To ensure that we can rollback to previous setup take a backup of /deploy/crossbow/shared/system/uploaded_datas directory.
>> Backup present in /deploy/crossbow/shared/system/uploaded_datas_backup_oslo_deployment
- Also take a backup of posts table as the rake task will modify the contents of posts table. Run this on dbmaster (10.166.152.12) - "mysqldump -ucbpuser -p cbprod posts > posts_sept162013.sql"
>> Dump present in /home/expprodl/backups/posts_oct_22_oslo_deployment.sql
===== Create protected Directory =====
Create /deploy/crossbow/shared/assets/protected folder. Will house all the protected contents.
cd /deploy/crossbow/shared/assets
mkdir protected
===== Change the deploy script =====
Modify the deploy.rb to add following line in the :symlink task
run "ln -nfs #{shared_path}/assets/protected #{release_path}/assets"
====== QA (Completed on 20/9/2013 13:25 IST) ======
===== Take backup =====
- To ensure that we can rollback to previous setup take a backup of /deploy/crossbow/shared/system/uploaded_datas directory.
>> Backup is present at /deploy/crossbow/shared/system/uploaded_datas_backup_sept_202013
- Also take a backup of posts table as the rake task will modify the contents of posts table. e.g "mysqldump -udevuser -p cb_stage posts > posts_sept102013.sql"
>> Backup is present at /home/expdev01/backups/posts_backup_sept202013.sql
===== Create protected Directory =====
Create /deploy/crossbow/shared/assets/protected folder. Will house all the protected contents.
cd /deploy/crossbow/shared/assets
mkdir protected
===== Change the deploy script =====
Modify the deploy.rb to add following line in the :symlink task
run "ln -nfs #{shared_path}/assets/protected #{release_path}/assets"