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

How do I prevent mina from removing images uploaded on production server? #419

Closed
saroar opened this issue Aug 20, 2016 · 2 comments
Closed

Comments

@saroar
Copy link

saroar commented Aug 20, 2016

here is my new config but its done not work it give me error
We're sorry, but something went wrong.

If you are the application owner check the logs for more information.

here is my code

set :shared_paths, %w[ config/database.yml config/secrets.yml log tmp config/application.yml shared/public/files shared/public/system shared/public/uploads ]

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

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

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

  queue! %[mkdir -p "#{deploy_to}/shared/public/private"]
  queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/public/private"] ```
@saroar
Copy link
Author

saroar commented Aug 20, 2016

now its duplicate images after upload here is pwd

  1. http://prntscr.com/c8b5j9
  2. http://prntscr.com/c8b5vh

@d4be4st
Copy link
Member

d4be4st commented Aug 27, 2016

remove shared/ from :shared_paths

set :shared_paths, %w[  shared/public/files ]

links #{deploy_path}/current/shared/public/files -> #{deploy_path}/shared/shared/public/files

@d4be4st d4be4st closed this as completed Aug 27, 2016
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

2 participants