部署 capistrano 3 可不可以更改 shared_path 位置?

yukihiro_matz · November 07, 2014 · Last by yukihiro_matz replied at November 08, 2014 · 2247 hits

如题,可以自定义吗?

====update===

Capfile

module Capistrano
  module DSL
    module Paths
      def shared_path
        deploy_path.join('/data/b2c-web-shared')
      end
    end
  end
end

和 2 不同,以public/uploads为例 set :linked_dirs, fetch(:linked_dirs) + %w{public/system public/uploads}

You need to Sign in before reply, if you don't have an account, please Sign up first.