Set default stage with Capistrano 3

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

    After I cd into the RAILS Root directory, issuing the command:

    cap development deploy

    seems to work. Earlier I was in the app/models folder and issuing the command came back with this error:

    Stage not set, please call something such as cap production deploy, where production is a stage you have defined.

提交回复
热议问题