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
Remove Heroku from README #242
Conversation
Interesting @neilmiddleton, thanks for the suggestion + link to new docs. I agree though, I have personally found asset_sync to be somewhat complicated and temperamental when used with Heroku. Haven't tried CloudFront yet, but I'd like to use an actual CDN instead of S3. |
Sure - it'd be great to point people at a better way of doing things, but I'm not sure the |
For what it's worth: I have three shell scripts that do the hard work:
sendDatabase.sh
syncAssets.sh
s3cmd http://s3tools.org/s3cmd seems pretty good, but you may wish not to use that in official documentation.... |
I would like to +1 for keeping asset_sync supported at least with Rails 3.x apps. I have just spent the last hour struggling with assets after following the article mentioned above by @neilmiddleton - I have yet to have this all work properly now. Asset_sync made my life easy and still does. I don't want to have to precompile and check my assets into version control again. Dropping support for asset_sync feels like 2 steps backward from ease of use. |
Yep, me too. I really don't understand what workflow whoever comes up with
|
By flipping to Cloudfront the deployment process is exactly the same as the default (without the added asset_sync sync). Cloudfront allows your deploys to use all the Heroku defaults (and also benefit from the deploy speed) |
So with Cloudfront all the assets get deployed on I think part of the problem is that Heroku (and the Gems you need to make Chris |
Basically it means Heroku recommends from:
to
|
|
Or add a note to README |
Incorrect. |
@neilmiddleton I compile on my dev machine |
@PikachuEXE You could try this: http://blog.alexmaccaw.com/faster-deploys. If that doesn't work raise a ticket with Heroku. You should not be having problems compiling assets and deploying within the 15 minute timeout. |
@neilmiddleton I understand; the specifics are now at the option of the buildpack, but the default Ruby buildpack essentially provides the old My point is that a) config variables now appear in the environment by default during asset compilation, and b) the |
Sure - although this PR is related to getting the entire section yanked as it's not a Heroku recommended path any more. |
We're in agreement. I mention that here because I agree that entirely removing Heroku from the README is correct solution. Putting CloudFront in front of your app is better for a lot of reasons: the Heroku release system is one, in-app cache control is another. Also, the resulting CloudFront distribution will actually handle I think that this pull request should be merged, but if someone wants to keep it, I can see room for discussion. Regardless: the README's Heroku section needs action; it's changed from "outside Heroku recommendations" to "outdated and incorrect". (And… all that said, I am using |
How do you guys handle CORS with S3? Possible to set |
Heroku no longer recommend using Asset Sync for managing assets. This is because:
As such the asset sync article on Devcenter has been replaced with "Using Amazon CloudFront CDN with Rails"
Ideally, we don't want to encourage newcomers to Heroku to use this as it invariably ends up with problems. Therefore, could we remove the Heroku-ness from the README? Whilst asset_sync is useful for others, it's no ideal for Heroku customers.