-
Notifications
You must be signed in to change notification settings - Fork 489
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
Losing the public/uploads directory after deploy #402
Comments
Add On Thu, Jul 14, 2016, 20:19 Folivi [email protected] wrote:
|
Thanks |
Unfortunately this doesn't work as expected. I decided to repeat the entire process from the beginning; deleted the app folder from the server, created the public/uploads dir in the shared dir, add the variable etc... How can I fix it? |
Can you ssh to your server and do a |
ls -al returns this lrwxrwxrwx 1 folivi folivi 59 juil. 19 11:18 uploads -> /home/jigger/rails/deepblue/production/shared/public/upload |
is that either way, this should be it. There should be files in your Also 403 error message might mean that the shared uploads folder does not have the right permissions. If that is so please google around for |
It's a copy/paste mistake. The dir name is correct this is what I get when I ls -al in my production/shared/public dir: I followed exactly what is described in the docs and this question: #214 |
Sorry but this looks like a web server issue. If the symlinks didn't work you would get 404 as he cant find the files. |
ok. Do you see anything wrong with my virtual host config? DocumentRoot /home/folivi/rails/myapp/production/current/public <Directory "/home/folivi/rails/myapp/production/current/public"> |
Solution In my apache virtual dir config, I had to allow apache to serve files which are not inside the app root, by adding the directive Options FollowSymlinks instead of Options None |
Hi,
I'm using carrierwave which stores uploaded files into public/uploads.
After deploying, the public/uploads directory is not copied to the current version and all my uploaded files are lost.
How can I fix this?
The text was updated successfully, but these errors were encountered: