Set default stage with Capistrano 3

后端 未结 5 1767
心在旅途
心在旅途 2021-02-05 03:26

Is there a way to set a default stage in Capistrano 3?

I\'ve tried putting set :stage, :production inside deploy.rb but that didn\'t work, it gives the erro

5条回答
  •  被撕碎了的回忆
    2021-02-05 03:59

    You can add the following line to your deploy.rb, which will prevent Capistrano from expecting a stage:

    set :stages, ["production"]
    

提交回复
热议问题