`

cap production deploy时候public/uploads文件夹内容无法共享解决办法

阅读更多

http://stackoverflow.com/questions/9043662/carrierwave-files-with-capistrano

 

# cap 3.2
# in config/deploy.rb
set :linked_dirs, fetch(:linked_dirs) + %w{public/system public/uploads}

cap production deploy:check:linked_dirs
cap production deploy:symlink:shared

 

# cap 2
# config/deploy.rb
set :shared_children, shared_children + %w{public/uploads}

cap production deploy:setup

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics