Carrierwave files with Capistrano

后端 未结 5 982
轮回少年
轮回少年 2020-12-07 21:18

I\'m using rails 3.2 with asset and carrierwave for upload some images, they store in /public/uploads/photo/..... but when I do a cap:deploy (with capistrano) my current d

5条回答
  •  感情败类
    2020-12-07 21:42

    Using Capistrano 3, I just added this line to my config/deploy.rb

    set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system public/uploads}
    

    Then, run:

    $ cap production deploy
    

提交回复
热议问题