Forum: Ruby on Rails capistrano-ext

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
661ae6e97d0e16c2af2aaf7d197e8387?d=identicon&s=25 Sijo k g (sijo)
on 2009-05-15 06:41
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
This topic is locked and can not be replied to.