rails 3 assets pipeline
TRANSCRIPT
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
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 г
QA
bull httpgithubcomka8725
bull httptwittercomka8725
суббота 6 октября 12 г