mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Fix #89
This commit is contained in:
parent
75d8177a3b
commit
0b618568a1
3 changed files with 4 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ Instead of building a config folder and deploy, you may want to programmatically
|
|||
|
||||
require 'capistrano/setup'
|
||||
require 'capistrano/deploy'
|
||||
Dir.glob('capistrano/tasks/*.cap').each { |r| import r }
|
||||
Dir.glob('capistrano/tasks/*.rake').each { |r| import r }
|
||||
|
||||
Capistrano::Application.invoke("production")
|
||||
Capistrano::Application.invoke("deploy")
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ library that forms the foundation of the Capistrano task system, the other
|
|||
methods are part of our sub-project
|
||||
[**SSHKit**](https://github.com/capistrano/sshkit). We'll dive into those more
|
||||
later, but add those lines to a file in `./lib/capistrano/tasks`, call it
|
||||
something like `access_check.cap`, and run `cap -T` from the top directory and
|
||||
something like `access_check.rake`, and run `cap -T` from the top directory and
|
||||
we'll be able to see the task listed:
|
||||
|
||||
{% highlight bash %}
|
||||
|
|
@ -160,7 +160,7 @@ working by writing a tiny Cap task, or simply using SSH to do it for us, the
|
|||
choice is yours:
|
||||
|
||||
{% highlight ruby %}
|
||||
# lib/capistrano/tasks/agent_forwarding.cap
|
||||
# lib/capistrano/tasks/agent_forwarding.rake
|
||||
desc "Check if agent forwarding is working"
|
||||
task :forwarding do
|
||||
on roles(:all) do |h|
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ This will create a bunch of files, the important ones are:
|
|||
└── tasks
|
||||
{% endhighlight %}
|
||||
|
||||
Your new Capfile will automatically include any tasks from any `*.cap` files in `lib/capistrano/tasks`.
|
||||
Your new Capfile will automatically include any tasks from any `*.rake` files in `lib/capistrano/tasks`.
|
||||
|
||||
### 4. Configure your server addresses in the generated files.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue