README.md in prun-ops-0.0.11 vs README.md in prun-ops-0.0.12
- old
+ new
@@ -50,11 +50,11 @@
Notice that you are adding all prun-ops tasks with the line `require 'capistrano/prun-ops'`
Your config/deploy/production.rb:
```
-server "example.com", user: 'root', roles: %w{web app}, port: 2222
+server "example.com", user: 'root', roles: %w{web app db}, port: 2222
```
Note: Remember change this line in production.rb file: `config.assets.compile = true`
### Deployment
@@ -67,26 +67,28 @@
### Backup
Backups/restore database and files in your Rails app.
-Configure your 'config/deploy.rb':
+Configure your 'config/applciation.rb':
```ruby
- # Backup directories
- set :backup_dirs, %w{public/uploads}
+ # Backup directories
+ config.backup_dirs = %w{public/ckeditor_assets public/system}
+
+ # Backup repo
+ config.backup_repo = "git@github.com:example/backup.git"
```
-And your 'config/applciation.rb':
+And your 'config/deploy.rb':
```ruby
# Backup directories
- config.backup_dirs = %w{public/ckeditor_assets public/system}
-
- # Backup repo
- config.backup_repo = "git@github.com:example/backup.git"
+ require_relative "./application.rb"
+ set :backup_dirs, Taskboard::Application.config.backup_dirs
```
+And

* `cap [stg] pull:data`: downloads DDBB and file folders from the stage you need.
* `cap [stg] backup[TAG]`: Commit a backup of DDBB and files to the git repo configured. "application-YYYYMMDD" tagged if no tag is provided.
* `cap [stg] backup:restore[TAG]`: Restore the last backup into the stage indicated, or tagged state if TAG is provided.
\ No newline at end of file