docs/how_mina_works.md in mina-1.1.1 vs docs/how_mina_works.md in mina-1.2.0

- old
+ new

@@ -162,11 +162,11 @@ When writing your tasks you can choose on which backend you want your scripts to run. Currently there are 2 backends: Backend | Description --------|--------- -`:remote` | Run on your server over SSH +`:remote` | Run on your server over SSH (Default) `:local` | Run on your machine Choosing on which backend a particular block is ran is defined in [`run(backend) do` block](writing_your_own_tasks.rb#run) These `run` blocks can be used however you want, you can mixandmatch them anywhich way. Only restriction is thay you can't use a `run` block inside another `run` block. @@ -188,6 +188,15 @@ end ``` `deploy do` block is a wrapper around `run(:backend) do` block. +If a tasks is created without a `run do` block, `:remote` backend is assumed: + +``` ruby +task :example do + command "passenger-configure restart-app" +end +``` + +The above command will be run on your server.