How to create custom stages with Capistrano 3?

1

I have a repository where two different applications come from. Although they share the same source code, the visual and database of the two is different, as well as the paths on the server. Good to remember that they are treated as different products as well.

So, I need to configure:

app1_production, app1_staging and app2_production, app2_staging

In capistrano version 2, I could create a file for each environment within config / deploy. But in version 3 it seems like that has changed. It only has staging and production. And now? Can I create custom stages like in Capistrano 2?

    
asked by anonymous 05.08.2015 / 21:27

1 answer

1

Good. I researched better and found the solution. Just do this at the time of installation:

bundle exec cap install STAGES=app1_staging,app1_production,app2_staging,app2_production
    
05.08.2015 / 23:12