简体   繁体   中英

Deploying ruby on rails app with mina

I have some attachments files in public/uploads/attachments that i want to keep in production server without getting override by mina in the next deployment process ( in case where i change my code ) Is there a way to keep the attachments without getting override ? Please help

Thank you in advance.

Add it like this:

set :shared_paths, ['config/database.yml', 'log', 'config/secrets.yml','public/uploads']

It will then be in the shared folder and not replaced on each deploy

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM