This workshop will be retired on May 1, 2025.
Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Our app is working, mostly, but its CSS and JavaScript files aren't loading. Our last step will be to fix that.
To precompile your app's assets, run this command from the app directory on the server:
$ RAILS_ENV=production bin/rails assets:precompile
Then, set up Rails to serve files from the public/assets/
subdirectory by setting an environment variable:
$ echo 'RAILS_SERVE_STATIC_FILES=true' >> .rbenv-vars
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
nguoisechia .com
Front End Web Development Techdegree Student 30,943 PointsThanks for your helpful course. I have a question.
1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up