Set default stage with Capistrano 3

后端 未结 5 1778
心在旅途
心在旅途 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:56

    New answer for capistrano 3.6+: It's better to use invoke :production unless Rake.application.options.show_tasks to avoid the warning which you would otherwise get with cap -T

提交回复
热议问题