Office of Secret Intelligence

Who taught you to be a spy, fucking Gallagher!?!

Uploads and Mina

Mina creates a new directory for each release, and does an ln -s to the shared directory in the root app directory (for logs, app server sockets/pids, etc).  This is great and all but it's a pain in the ass for uploads, especially with Carrierwave.  If I provide the absolute path to the directory I want to write to, it works okay.  It won't display properly though, because it uses the absolute path instead of the relative when it constructs the URL.  If I use the relative URL, images that have already been uploaded display properly, but it won't write to the directory properly, as in, it won't write to the symlinked shared/ directory.  I have no fucking clue why, so I'm just going to use Fog and S3 since it'll be much cheaper anyway.


This is a learning experience.

Sign in to reply