railsware / capistrano-multiconfig

Capistrano extension that allows to use multiple configurations
MIT License
65 stars 19 forks source link

undefined method `server' for main:Object (NoMethodError) #2

Closed kortina closed 12 years ago

kortina commented 12 years ago

I created a test project to try getting this working, am having trouble splitting up my configuration files. In config/deploy.rb, I have

set :config_root, 'config/deploy'
require 'capistrano/multiconfig'

To test, I did:

mkdir -p config/deploy/app/blog/production.rb
mkdir -p config/deploy/app/blog/staging.rb

And put

server 'staging.kortina.net', :app, :primary => true

server 'production.kortina.net', :app, :primary => true

In each of these files. However, I get an error when I do

cap app:blog:production shell

It appears the context is incorrect when the staging and production config files actually get loaded.

ayanko commented 12 years ago

Fixed in v0.0.3