Hi,

I'm trying to use Capistrano for deployment of a django app. I have
generated a Capfile and deploy.rb with capify. After customizing the
deploy.rb with my settings, and testing it with my stop/start/restart
Apache tasks, I tried to call 'cap deploy', but I keep getting the
message: the task `deploy' does not exist . Whatever I do, with -f
deploy, -f Capfile, or both, or without, everytime I the message: the
task `deploy' does not exist .

My deploy.rb looks like this:
-----------
set :application, "myproject"
set :repository, "http://svn. myproject.com/myproject/trunk/myproject"

set :apache_dir, "$HOME/webapps/django/apache2"

role :app, "xx.xx.xxx.xx"
role :web, "xx.xx.xxx.xx"
role :db,  "xx.xx.xxx.xx"

#set :use_sudo, false

set :deploy_to, "$HOME/deployments/#{application}"

namespace :apache do
        desc "A task that can be used to stop Apache."
        task :stop do
                run "#{apache_dir}/bin/stop"
        end

        desc "A task that can be used to start Apache."
        task :start do
                run "#{apache_dir}/bin/start"
        end

        desc "A task that can be used to restart Apache."
        task :restart do
                run "#{apache_dir}/bin/restart"
        end
end
-----------

Since I don't know anything about ruby or capistrano (just found it
today and thought it might simplify my deployments), it could be that
I'm missing something very obvious, but I can't find it.
In summary, what do I need to do to access the 'built-in' deploy task?

Regards, Sander.


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to