bundle install doesn't work from capistrano

后端 未结 9 1729
再見小時候
再見小時候 2021-02-01 15:14

I want to deploy my simple rails 4.0 application via capistrano 3.0.

I use bundler 1.3.5 so I add capistrano-bundler gem to integ

9条回答
  •  旧时难觅i
    2021-02-01 15:56

    This works in capistrano 3:

      task :bundle_list do
        on roles(:app) do
          within release_path do
            with rails_env: fetch(:rails_env) do
              execute :bundle, "list"
            end
          end
        end
      end
    

    Use this for rake task :

    execute :rake, 'some_rake_task'
    

提交回复
热议问题