Don't have an answer sorry - please keep the list posted if you have a good
solution, it'd be quite welcome given the number of times this has come up
already.


On Mon, Apr 21, 2014 at 2:41 AM, Brad Bode <[email protected]> wrote:

> Stephen, Mezzanine rocks. There are definitely a few sticking points when
> deploying on Amazon EC2 / Elastic Beanstalk + S3, but most of them I have
> overcome. The biggest issue is the thumbnail template tag (Not for reasons
> that are your fault). For the sake of info, here is the issue:
>
> Amazon EB and EC2 uses an interesting app deployment mechanism. Each time
> you update your app it increments a number in a directory, deploys your app
> into that directory, and starts the server.
>
> For instance, if you go with out of the box Mezzanine settings your static
> and media content goes here:
> /opt/python/bundle/1/app/static/media
>
> On subsequent deploys the new deploy will go here:
> /opt/python/bundle/2/app/static/media
>
> Note the incremental number change.
>
> So, the first issue is that the uploaded media disappears with each deploy
> because it is IN the app directory. The solution was to use django storages
> with S3 (and help from s3_folder_storage). That fixes the issue for
> uploading media and not have it be erased across deploys.
>
> If you didn't use S3, you could write your own script that runs on each
> deploy and copies over previous uploaded images. No fun and quite a patch.
>
> So that leads me to the final problem. Thumbnails does not work with S3
> (you already know this). I understand the issue, but is there any other
> workaround? I suppose I could monkey patch the tag to do something
> completely different and upload the thumbnail to S3.
>
> Any thoughts on the issue?
>
> PS> This question was briefly discuss here
> https://groups.google.com/forum/#!topic/mezzanine-users/WGVaNhD5vRs
> No clear solution was posted.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to