diff options
| author | mo khan <mo@mokhan.ca> | 2015-01-10 19:03:59 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-01-10 19:35:10 -0700 |
| commit | e02e879fdbe0beec04ce4ff194c15b81bf4f82a5 (patch) | |
| tree | d8783f9fdb6acbb8f8c23a04bb59d4181edd82f5 | |
| parent | 83a3fb67d0fb943e95fdbc81bc0d599d4642f7c8 (diff) | |
sanitize
| -rw-r--r-- | doc/README_FOR_APP | 2 | ||||
| m--------- | doc/wiki | 0 | ||||
| -rw-r--r-- | lib/capistrano/tasks/db.rake | 2 | ||||
| -rw-r--r-- | lib/capistrano/tasks/utility.rake | 8 |
4 files changed, 5 insertions, 7 deletions
diff --git a/doc/README_FOR_APP b/doc/README_FOR_APP deleted file mode 100644 index fe41f5cc..00000000 --- a/doc/README_FOR_APP +++ /dev/null @@ -1,2 +0,0 @@ -Use this README file to introduce your application and point to useful places in the API for learning more. -Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries. diff --git a/doc/wiki b/doc/wiki deleted file mode 160000 -Subproject ecc8dd078355392a2460b4944c2b45268633c4f diff --git a/lib/capistrano/tasks/db.rake b/lib/capistrano/tasks/db.rake index 61c80a69..292ed896 100644 --- a/lib/capistrano/tasks/db.rake +++ b/lib/capistrano/tasks/db.rake @@ -10,7 +10,7 @@ namespace :db do execute "mkdir -p #{shared_path}/backups" execute "PGPASSWORD='#{fetch(:postgresql_password)}' pg_dump -Fc --no-acl --no-owner -h #{fetch(:postgresql_host)} -U deployer cakeside > #{backup_path}/#{filename}" download!("#{backup_path}/#{filename}", "db/backups/", :via => :scp) - execute "s3cmd sync #{shared_path}/backups/*.dump s3://cakeside-logs/#{fetch(:rails_env)}/pg/" + execute "s3cmd sync #{shared_path}/backups/*.dump s3://#{ENV['AWS_S3_BACKUPS_BUCKET']}/#{fetch(:rails_env)}/pg/" end end end diff --git a/lib/capistrano/tasks/utility.rake b/lib/capistrano/tasks/utility.rake index b9745a53..0c250f69 100644 --- a/lib/capistrano/tasks/utility.rake +++ b/lib/capistrano/tasks/utility.rake @@ -7,10 +7,10 @@ end task :sync_logs do on roles(:app) do - execute "s3cmd sync #{shared_path}/log/#{fetch(:rails_env)}.log-*.gz s3://cakeside-logs/#{fetch(:rails_env)}/rails/" - execute "s3cmd sync #{shared_path}/log/delayed_job.log-*.gz s3://cakeside-logs/#{fetch(:rails_env)}/delayed_job/" - execute "s3cmd sync #{shared_path}/log/unicorn.log-*.gz s3://cakeside-logs/#{fetch(:rails_env)}/unicorn/" + execute "s3cmd sync #{shared_path}/log/#{fetch(:rails_env)}.log-*.gz s3://#{ENV['AWS_S3_BACKUPS_BUCKET']}/#{fetch(:rails_env)}/rails/" + execute "s3cmd sync #{shared_path}/log/delayed_job.log-*.gz s3://#{ENV['AWS_S3_BACKUPS_BUCKET']}/#{fetch(:rails_env)}/delayed_job/" + execute "s3cmd sync #{shared_path}/log/unicorn.log-*.gz s3://#{ENV['AWS_S3_BACKUPS_BUCKET']}/#{fetch(:rails_env)}/unicorn/" #execute "chown deployer /var/log/nginx/cakeside.*.log-*.gz" - #execute "s3cmd sync /var/log/nginx/cakeside.*.log-*.gz s3://cakeside-logs/#{fetch(:rails_env)}/nginx/" + #execute "s3cmd sync /var/log/nginx/cakeside.*.log-*.gz s3://#{ENV['AWS_S3_BACKUPS_BUCKET']}/#{fetch(:rails_env)}/nginx/" end end |
