How to create custom Stages with Capistrano 3?

Asked

Viewed 21 times

1

I have a repository from which two different applications derive. 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 too.

So I need to set up:

app1_production, app1_staging e app2_production, app2_staging

In version 2 of Capistrano, I could create a file for each environment within config/deploy. But in version 3 it seems that this has changed. All you have is staging and Production. What now? Is there any way I can create custom Stages like in Capistrano 2?

1 answer

0

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.