augustash / capistrano-ash

August Ash recipes for Capistrano
http://augustash.com
MIT License
73 stars 12 forks source link

cannot combine ash/hosted_magento with capistrano-multiconfig #20

Closed arthos closed 12 years ago

arthos commented 12 years ago

recipes: https://github.com/railsware/capistrano-multiconfig + https://github.com/augustash/capistrano-ash/wiki/Shared-Hosting-Magento-Example

I try to deploy a magento shop to different servers. The only difference is a theme in an other language and the database. The codebase is the same. I want to deploy something like: tree

but if i issue: $ cap -T the task `staging' does not exist

can you give me a hint how to solve this ?

Greets and thnx :)

grafikchaos commented 12 years ago

I personally haven't used the capistrano-multiconfig before but one of our developers has done a capistrano/capistrano-multiconfig deployment before (without using our capistrano-ash recipes). I'll ask him to comment on this.

The staging task is available with the capistrano-ext gem and essentially uses the desired environment's ruby deploy file (in this case 'staging.rb'), but you could have numerous environments you can deploy to. For example you could have a demo or quality environments with correspond demo.rb and quality.rb deploy files.

You may also want to look more into the documentation on Capistrano roles as you can deploy your codebase to multiple servers that have different purposes (web, app, db). That's where the beauty and power of Capistrano really shines.

arthos commented 12 years ago

what a shame that i didnt try to create different [stage].rb ... now i can deploy the multilanguage shop to different servers. thnx mate :)