Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carrierwave: how to share public/uploads path? #214

Closed
jmuheim opened this issue Jul 30, 2014 · 5 comments
Closed

Carrierwave: how to share public/uploads path? #214

jmuheim opened this issue Jul 30, 2014 · 5 comments

Comments

@jmuheim
Copy link

jmuheim commented Jul 30, 2014

I simply added public/uploads to :shared_paths like this:

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

Then in task setup: :environment added:

queue! %[mkdir -p "#{deploy_to}/shared/public/uploads"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/public/uploads"]

Is this the correct approach?

@gabskoro
Copy link
Member

gabskoro commented Oct 4, 2014

Excatly :)

@gabskoro gabskoro closed this as completed Oct 4, 2014
@reicheltd
Copy link

works! thank you very much!

@ghost
Copy link

ghost commented Jun 6, 2016

Muito obrigado!

@folivi
Copy link

folivi commented Jul 17, 2016

Getting error 403 with this in my rails 5 app

@jarvisjohnson
Copy link

For anyone look at this now, the current method is:

set :shared_dirs, fetch(:shared_dirs, []).push('public/system') (for Paperclip) or
set :shared_dirs, fetch(:shared_dirs, []).push('public/uploads') (for Carrierwave)

I also need to create the directory to symlink to:

mkdir ~/app/shared/public/system or mkdir ~/app/shared/public/uploads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants