V
V
vadimstroganov2015-08-14 18:30:07
Ruby on Rails
vadimstroganov, 2015-08-14 18:30:07

How to save a folder with Capistrano?

Hello! there is an uploads folder in the public directory, all uploaded files through the admin panel go there, these files are not stored on the local area. The problem is that when I make changes, the uploads folder in the new release is empty.
Tell me how to make the uploads directory copied to the new release?
Capistrano 3.1

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TyzhSysAdmin, 2015-08-14
@POS_troi

And show the deploy.rb config?

N
Nikolai Markov, 2015-08-14
@manameiz

Haven't worked with capistrano for a long time. She already has a 3 major release, but it seems to me that you need to add a folder
publiс/uploadsto

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question