Hello,
After reorganizing and migrating to multistage, here is my config layout:
|-- Capfile
`-- config
|-- deploy
| |-- recipes
| | |-- codeigniter.rb
| | |-- (or) rails.rb
| | `-- shared_dirs.rb
| `-- stages
| |-- production.rb
| `-- staging.rb
`-- deploy.example.rb
codeigniter.rb is a recipe for our php apps, rails.rb contains mainly mongrel
configuration.
shared_dirs.rb contains config for shared directories symlinking.
As for deploy.rb, it only contains passwords, logins and other authentification
configuration. It isn't versioned as ~/.caprc does the job fine.
All the app specific configuration (hosts, roles...) is stored in the Capfile.
I didn't see much of this practices so please feel free to comment :-)
Jamis Buck a écrit :
> If you want deploy.rb in config/recipes, then you can easily put it
> there. Just change Capfile to point at it. The reason it isn't done by
> default is because most people will have a single deploy.rb and
> nothing else, and a directory with one file in it isn't organization,
> in my mind; it's clutter. :)
>
> - Jamis
>
> On Fri, Dec 5, 2008 at 6:42 AM, bartocc <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> Another post to ask if there is a good practice to refactor deploy.rb
>> into several files.
>> I created config/recipes and load my files in there from deploy.rb.
>> Works fine.
>>
>> I can't help to feel strange though when I see deploy.rb not beeing in
>> this recipe folder, since deploy.rb in the capistrano gem lives inside
>> the recipe dir. (I know, I tend to be a bit of a freak when it comes
>> to files organisation ^^).
>>
>> So I also wanted to share one thought : capify my_rails_app creates
>> Capfile and config/deploy.rb. Wouldn't it be a good thing to have it
>> create a config/recipe folder and place deploy.rb there ?
>>
>> Ju
>
> >
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---