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

How does GitHub handle assets during deployments? #560

Closed
ndbroadbent opened this Issue Jun 30, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@ndbroadbent

ndbroadbent commented Jun 30, 2014

Hey,

I was wondering how you handle assets during GitHub deploys. I found the Optimizing asset bundling and serving with Rails blog post, but that was posted over 4 years ago, so things must have changed by now. Especially due to the Rails asset pipeline. So I have a few questions:

  • How do you handle the compilation, packaging and deployment of assets?
  • Do you host everything on your own servers, or is assets-cdn.github.com hosted on something like S3?
  • How do you expire and clear out old assets?

Also, would you ever consider open-sourcing the code and conventions that power GitHub's deployments?

Thanks!

@holman

This comment has been minimized.

Show comment
Hide comment
@holman

holman Jun 30, 2014

Owner

If we're super nice, maybe @josh could come in and shed some light on bits of this.

Owner

holman commented Jun 30, 2014

If we're super nice, maybe @josh could come in and shed some light on bits of this.

@josh

This comment has been minimized.

Show comment
Hide comment
@josh

josh Jun 30, 2014

How do you handle the compilation, packaging and deployment of assets?

We're pretty much on a stock-ish configuration of the Rails asset pipeline. All our assets are under app/assets and we use CoffeeScript and SCSS.

Do you host everything on your own servers, or is assets-cdn.github.com hosted on something like S3?

We use fastly as our CDN.

How do you expire and clear out old assets?

rake assets:clean

Also, would you ever consider open-sourcing the code and conventions that power GitHub's deployments?

Since its mostly stock Sprockets, its all basically open source.

I'm working on Sprockets 3.x at the moment, so expect more goodies.

Thanks!

josh commented Jun 30, 2014

How do you handle the compilation, packaging and deployment of assets?

We're pretty much on a stock-ish configuration of the Rails asset pipeline. All our assets are under app/assets and we use CoffeeScript and SCSS.

Do you host everything on your own servers, or is assets-cdn.github.com hosted on something like S3?

We use fastly as our CDN.

How do you expire and clear out old assets?

rake assets:clean

Also, would you ever consider open-sourcing the code and conventions that power GitHub's deployments?

Since its mostly stock Sprockets, its all basically open source.

I'm working on Sprockets 3.x at the moment, so expect more goodies.

Thanks!

@ndbroadbent

This comment has been minimized.

Show comment
Hide comment
@ndbroadbent

ndbroadbent Jun 30, 2014

Awesome, thanks for your reply!

ndbroadbent commented Jun 30, 2014

Awesome, thanks for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment