Commit e8f6bf1c

mo k <mo@mokhan.ca>
2012-08-15 18:23:35
create symlink to latest in app root.
1 parent 9458693
Changed files (1)
Rakefile
@@ -42,10 +42,10 @@ end
 
 task :restore do
   # 1. backup prod database
-  sh "cap production backup_db"
+  #sh "cap production backup_db"
   # 2. copy backup to staging
-  sh "ln -s db/backups/`ls -rt db/backups/ | tail -n1` /db/backups/latest"
+  sh "ln -s db/backups/`ls -rt db/backups/ | tail -n1` latest"
   # 3. restore backup on staging
-  sh "cap staging restore_db"
+  #sh "cap staging restore_db"
 end