… of many things …

February 24, 2009

Capistrano failure to deploy

Filed under: Capinatra, Capistrano, Ruby, Sinatra, Software — Tags: — Jason Rogers @ 10:14 am

I have Capinatra (0.1.0) installed and Capistrano (2.5.3).  While trying to deploy to production I got this error:

/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.3/lib/capistrano/configuration/namespaces.rb:188:in `method_missing’: undefined local variable or method `app_class’ for #<Capistrano::Configuration::Namespaces::Namespace:0×12060d8> (NameError)

The “fix” was to set the app_class variable in my Capfile (I’m using the DSL style of Sinatra, I don’t have a base class that extends Sinatra::Base).

set :app_class, ”

blog comments powered by Disqus

Powered by WordPress