Capistrano-ext


#1

Hi
In my application config/deploy.rb I have

set :stages, %w(dev testing)
set :default_stage, “dev”

require ‘capistrano/ext/multistage’

-----etc

after “deploy”, “deploy:migrate”

Now in config/deply/dev.rb
role :app, “192.168.1.13”
role :db, “192.168.1.13”, :primary => true

And all the cap deploy:setup, deploy:update work properly

But when I do cap deploy all svn check out etc works but finally get
error

  • executing “cd
    /var/www/railsapps/account_service/releases/20090515040757; rake
    RAILS_ENV=dev db:migrate”
    servers: [“192.168.1.13”]
    [192.168.1.13] executing command
    *** [err :: 192.168.1.13] rake aborted!
    failed: “sh -c “cd
    /var/www/railsapps/application/releases/20090515040757; rake
    RAILS_ENV=dev db:migrate”” on 192.168.1.13

       Is it because RAILS_ENV=dev ? If so how can I make it
    

RAILS_ENV=development?

Thanks in advance
Sijo