Skip to content

Commit

Permalink
Update assets section of 4.2 for heroku cedar
Browse files Browse the repository at this point in the history
  • Loading branch information
dimroc committed May 2, 2012
1 parent 73977ed commit 39d8cda
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lectures/04-rails-mvc/4.2-rails-mvc-scaffold.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,13 @@ We can now navigate to `http://localhost:3000/things` and see our new scaffold a
Assets
------

In Rails assets are precompiled.
In Rails assets are precompiled. As of Rails 3.1.1 and the Heroku Cedar stack, this is done automatically on deployment.

RAILS_ENV=production
rake assets:precompile
git add public/assets
git commit -m "vendor compiled assets"
Here are the manual steps for asset precompilation on Rails:

$ RAILS_ENV=production rake assets:precompile
$ git add public/assets
$ git commit -m "vendor compiled assets"

Deploy to Heroku
----------------
Expand Down

0 comments on commit 39d8cda

Please sign in to comment.