Rails 3 assets pipeline
Transcript of Rails 3 assets pipeline
![Page 1: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/1.jpg)
Rails assets pipelineka8725
суббота 6 октября 12 г
Objects
bull Css (SaSS)
bull Javascript (coffeescript)
bull Images
bull Fonts
bull other files
суббота 6 октября 12 г
Why
bull Compressing up to 80
суббота 6 октября 12 г
Why
bull Caching (with digests)
суббота 6 октября 12 г
Assets folders
bull appassets
bull libassets
bull vendorassets
суббота 6 октября 12 г
Assets folder structure
bull appassets or libassets or vendorassets
bull stylesheets
bull javascripts
bull images
bull your own folder (for example fonts)
суббота 6 октября 12 г
Main files
file1js
file2js
applicationjsincluded
суббота 6 октября 12 г
applicationjs
bull = require jquery
bull = require jquery_ujs
bull = reauire_tree
суббота 6 октября 12 г
Including assets to views
bull javascript_include_tag
bull stylesheet_include_tag
bull image_tag
bull asset_path
суббота 6 октября 12 г
Examples
bull javascript_include_tag lsquoapplicationrsquo
bull stylesheet_include_tag lsquoapplicationrsquo
bull javascript_include_tag lsquomy_filersquo
Change configenvironmentsproductionrbconfigassetsprecompile += w(my_filejs)
суббота 6 октября 12 г
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 2: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/2.jpg)
Objects
bull Css (SaSS)
bull Javascript (coffeescript)
bull Images
bull Fonts
bull other files
суббота 6 октября 12 г
Why
bull Compressing up to 80
суббота 6 октября 12 г
Why
bull Caching (with digests)
суббота 6 октября 12 г
Assets folders
bull appassets
bull libassets
bull vendorassets
суббота 6 октября 12 г
Assets folder structure
bull appassets or libassets or vendorassets
bull stylesheets
bull javascripts
bull images
bull your own folder (for example fonts)
суббота 6 октября 12 г
Main files
file1js
file2js
applicationjsincluded
суббота 6 октября 12 г
applicationjs
bull = require jquery
bull = require jquery_ujs
bull = reauire_tree
суббота 6 октября 12 г
Including assets to views
bull javascript_include_tag
bull stylesheet_include_tag
bull image_tag
bull asset_path
суббота 6 октября 12 г
Examples
bull javascript_include_tag lsquoapplicationrsquo
bull stylesheet_include_tag lsquoapplicationrsquo
bull javascript_include_tag lsquomy_filersquo
Change configenvironmentsproductionrbconfigassetsprecompile += w(my_filejs)
суббота 6 октября 12 г
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 3: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/3.jpg)
Why
bull Compressing up to 80
суббота 6 октября 12 г
Why
bull Caching (with digests)
суббота 6 октября 12 г
Assets folders
bull appassets
bull libassets
bull vendorassets
суббота 6 октября 12 г
Assets folder structure
bull appassets or libassets or vendorassets
bull stylesheets
bull javascripts
bull images
bull your own folder (for example fonts)
суббота 6 октября 12 г
Main files
file1js
file2js
applicationjsincluded
суббота 6 октября 12 г
applicationjs
bull = require jquery
bull = require jquery_ujs
bull = reauire_tree
суббота 6 октября 12 г
Including assets to views
bull javascript_include_tag
bull stylesheet_include_tag
bull image_tag
bull asset_path
суббота 6 октября 12 г
Examples
bull javascript_include_tag lsquoapplicationrsquo
bull stylesheet_include_tag lsquoapplicationrsquo
bull javascript_include_tag lsquomy_filersquo
Change configenvironmentsproductionrbconfigassetsprecompile += w(my_filejs)
суббота 6 октября 12 г
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 4: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/4.jpg)
Why
bull Caching (with digests)
суббота 6 октября 12 г
Assets folders
bull appassets
bull libassets
bull vendorassets
суббота 6 октября 12 г
Assets folder structure
bull appassets or libassets or vendorassets
bull stylesheets
bull javascripts
bull images
bull your own folder (for example fonts)
суббота 6 октября 12 г
Main files
file1js
file2js
applicationjsincluded
суббота 6 октября 12 г
applicationjs
bull = require jquery
bull = require jquery_ujs
bull = reauire_tree
суббота 6 октября 12 г
Including assets to views
bull javascript_include_tag
bull stylesheet_include_tag
bull image_tag
bull asset_path
суббота 6 октября 12 г
Examples
bull javascript_include_tag lsquoapplicationrsquo
bull stylesheet_include_tag lsquoapplicationrsquo
bull javascript_include_tag lsquomy_filersquo
Change configenvironmentsproductionrbconfigassetsprecompile += w(my_filejs)
суббота 6 октября 12 г
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 5: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/5.jpg)
Assets folders
bull appassets
bull libassets
bull vendorassets
суббота 6 октября 12 г
Assets folder structure
bull appassets or libassets or vendorassets
bull stylesheets
bull javascripts
bull images
bull your own folder (for example fonts)
суббота 6 октября 12 г
Main files
file1js
file2js
applicationjsincluded
суббота 6 октября 12 г
applicationjs
bull = require jquery
bull = require jquery_ujs
bull = reauire_tree
суббота 6 октября 12 г
Including assets to views
bull javascript_include_tag
bull stylesheet_include_tag
bull image_tag
bull asset_path
суббота 6 октября 12 г
Examples
bull javascript_include_tag lsquoapplicationrsquo
bull stylesheet_include_tag lsquoapplicationrsquo
bull javascript_include_tag lsquomy_filersquo
Change configenvironmentsproductionrbconfigassetsprecompile += w(my_filejs)
суббота 6 октября 12 г
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 6: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/6.jpg)
Assets folder structure
bull appassets or libassets or vendorassets
bull stylesheets
bull javascripts
bull images
bull your own folder (for example fonts)
суббота 6 октября 12 г
Main files
file1js
file2js
applicationjsincluded
суббота 6 октября 12 г
applicationjs
bull = require jquery
bull = require jquery_ujs
bull = reauire_tree
суббота 6 октября 12 г
Including assets to views
bull javascript_include_tag
bull stylesheet_include_tag
bull image_tag
bull asset_path
суббота 6 октября 12 г
Examples
bull javascript_include_tag lsquoapplicationrsquo
bull stylesheet_include_tag lsquoapplicationrsquo
bull javascript_include_tag lsquomy_filersquo
Change configenvironmentsproductionrbconfigassetsprecompile += w(my_filejs)
суббота 6 октября 12 г
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 7: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/7.jpg)
Main files
file1js
file2js
applicationjsincluded
суббота 6 октября 12 г
applicationjs
bull = require jquery
bull = require jquery_ujs
bull = reauire_tree
суббота 6 октября 12 г
Including assets to views
bull javascript_include_tag
bull stylesheet_include_tag
bull image_tag
bull asset_path
суббота 6 октября 12 г
Examples
bull javascript_include_tag lsquoapplicationrsquo
bull stylesheet_include_tag lsquoapplicationrsquo
bull javascript_include_tag lsquomy_filersquo
Change configenvironmentsproductionrbconfigassetsprecompile += w(my_filejs)
суббота 6 октября 12 г
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 8: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/8.jpg)
applicationjs
bull = require jquery
bull = require jquery_ujs
bull = reauire_tree
суббота 6 октября 12 г
Including assets to views
bull javascript_include_tag
bull stylesheet_include_tag
bull image_tag
bull asset_path
суббота 6 октября 12 г
Examples
bull javascript_include_tag lsquoapplicationrsquo
bull stylesheet_include_tag lsquoapplicationrsquo
bull javascript_include_tag lsquomy_filersquo
Change configenvironmentsproductionrbconfigassetsprecompile += w(my_filejs)
суббота 6 октября 12 г
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 9: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/9.jpg)
Including assets to views
bull javascript_include_tag
bull stylesheet_include_tag
bull image_tag
bull asset_path
суббота 6 октября 12 г
Examples
bull javascript_include_tag lsquoapplicationrsquo
bull stylesheet_include_tag lsquoapplicationrsquo
bull javascript_include_tag lsquomy_filersquo
Change configenvironmentsproductionrbconfigassetsprecompile += w(my_filejs)
суббота 6 октября 12 г
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 10: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/10.jpg)
Examples
bull javascript_include_tag lsquoapplicationrsquo
bull stylesheet_include_tag lsquoapplicationrsquo
bull javascript_include_tag lsquomy_filersquo
Change configenvironmentsproductionrbconfigassetsprecompile += w(my_filejs)
суббота 6 октября 12 г
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 11: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/11.jpg)
Gems for compressing
bull closure
bull uglifier (default)
bull yui
суббота 6 октября 12 г
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 12: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/12.jpg)
When compile
bull Only in production mode
bull In development just make sure that rake assetsprecompile works
bull Always clean assets in development mode rake assetsclean
суббота 6 октября 12 г
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 13: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/13.jpg)
Where
bull Production server
bull Content Delivery Network (CDN)
bull Just other server (your own CDN)
суббота 6 октября 12 г
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 14: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/14.jpg)
Workflows 1
bull run rake assetsprecompile in development mode
bull push compiled assets (publicassets) to CDN
bull push your new code to the production server
суббота 6 октября 12 г
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 15: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/15.jpg)
Workflows 2
bull Push code to production server
bull Precompile assets on the server
bull Push assets to the CDN
суббота 6 октября 12 г
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 16: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/16.jpg)
Production release structure
CDN (Content Delivery Network)
Production server
Development machine
суббота 6 октября 12 г
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 17: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/17.jpg)
Famous CDNs
bull Amazon S3
bull Rackspace
суббота 6 октября 12 г
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 18: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/18.jpg)
Tools to pushing assets to CDN
bull asset_sync (we will use it)
bull jammit_s3
bull others
суббота 6 октября 12 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г
![Page 19: Rails 3 assets pipeline](https://reader033.fdocuments.us/reader033/viewer/2022051516/55a2d83f1a28ab977d8b4619/html5/thumbnails/19.jpg)
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г