Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Assets aren't uploaded on Heroku deploy #5
I'm using Rails 3.1.RC6 and have added asset_sync into my project for deploy to Heroku. When I deploy with a new git push, the assets are not uploaded to my S3 bucket. However, if I run
then they are uploaded successfully. This implies that the setup is correct but for some reason the rake task isn't getting run on deploy. I'll open a ticket with Heroku as well, but given that you mention this will work "automagically" I wondered if you had any ideas?
We still need to check fully what's going on with rc6 and rc7, I think a bug was introduced in those release candidates.
I'd suggest going back to rc5, or up to rc8. We've got it tested and working on both of those.
Or you could jump to Rails 3.1 which was just fully released. All being well if there hasn't been any regression of that bug since rc8 fixed it then we're good!
On 31 Aug 2011, at 12:26, mrship wrote:
We had the same problem (rails 3.1 stable, cedar) and for us the problem was on heroku; it looks like your config vars is not available when heroku runs
We fixed this by keeping the actual aws key/secret in the initializer:
Not the best/securest solution, but works for now ;(