Created
May 16, 2012 23:40
-
-
Save joncode/2714929 to your computer and use it in GitHub Desktop.
Production Asset pipeline deploy precompile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rake assets:precompile | |
| - will precompile assets | |
| check config/environment/production.rb | |
| config.serve_static_assets = true | |
| - to simulate server serving static assets in production | |
| config.assets.precompile += %w( plugins.js , script.js ) | |
| - if javascript assets are not precompiling, you must specifically include them here | |
| rails server -e production | |
| - to run your local machine in production environment | |
| when deploy to production | |
| config.serve_static_assets = false | |
| - only set that way when running local server in production mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment