Closed kortina closed 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
app:blog:production' /tmp/capmst/config/deploy/app/blog/production.rb:1: undefined method
It appears the context is incorrect when the staging and production config files actually get loaded.
Fixed in v0.0.3
I created a test project to try getting this working, am having trouble splitting up my configuration files. In config/deploy.rb, I have
To test, I did:
And put
In each of these files. However, I get an error when I do
cap app:blog:production shell
app:blog:production' /tmp/capmst/config/deploy/app/blog/production.rb:1: undefined method
server' for main:Object (NoMethodError)It appears the context is incorrect when the staging and production config files actually get loaded.