Resolves an issue where bootstrap CSS styles cannot be displayed when deploying to Heroku

Source: Internet
Author: User

Today using the Bootstrap-sass layout, really good, is said to be a tweet open source of an east, local all OK when the happy git push Heroku, found bootstrap CSS style and not expected to show it, feeling still quite depressed , but there is a problem to solve, so holding a technical question to Google's attitude, search the next, found a solution on the StackOverflow, have to say that StackOverflow is really a good thing, most of my problems are resolved on that.

Original:

I could not view the site with bootstrap CSS in Heroku so I do the following change on CONFIG/ENVIRONMENTS/PRODUCTION.RB, Change the line:

( translation: I can not see the bootstrap CSS style on the Heroku deployed application, so I made the following changes in the Config/environments/production.rb file)

Config.assets.compile = False

To:

Config.assets.compile = True

Haha, the problem is solved! Reply!!!!!! IT works!

Resolves an issue where bootstrap CSS styles cannot be displayed when deploying to Heroku

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.